How to draw a graph using C#
-
hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune
You've been ridiculed already for asking this in the Lounge, but no one managed to mention how pointless the question is. Google will tell you and so will an article search here. Try c# graph as a subject. I'll leave the complex keyboard skilz and leet copying to you.
Panic, Chaos, Destruction. My work here is done.
-
hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune
-
hi, I would like to make a program that deal with algorithm on graphs. Which control should I use for drawing the graph - the nodes and edges? Thanks, Lune
I spent a lot of time researching this when I was trying to build an application to plot juggling state graphs. In the end I decided that laying out the nodes was one of those jobs that's almost trivial for a human but an absolute nightmare for a computer. There are some OK algorithms for laying out the graphs ( a lot come from electronic circuit board design) but they will never work 100% for the task you are trying to achieve. I made the Nodes draggable and then let the user arrange them where they were wanted, it was far less coding effort than trying to auto sort anything more than a trivial graph. Russ