A "Forest control" for .NET: A usercontrol that can display X nodes where each node may have a connection to another?
I have a structure I need to visualize. It contains of a set of nodes, where each node has a connection to one of the other nodes. A treeview can not show this as the connection does not follow a treeview structure.
Does anyone know of a control that might be able to show this? The best way to illustrate the node connections is like when you show a class diagram in .NET. Each class comes up with lines to what other classes they are connected to.
I just need a very simple way to show this. Simple boxes with or without info that connects to other boxes that again connects to other boxes.
Simply illustrated here:
[D]--->[E]
^ |
| |
| v
[A]<---[B]--->[C]
Solution using GLEE
Add a GViewer to your usercontrol. Then to reproduce my ABCDE example over, only this is needed:
Graph g = new Graph("graph");
g.AddEdge("B","A");
g.A开发者_如何转开发ddEdge("B", "C");
g.AddEdge("B", "D");
g.AddEdge("D", "E");
g.AddEdge("E", "C");
myGViewer.Graph = g;
This "forest" sounds just like a Directed Graph (digraph). Google it. First results page comes up with:
- QuickGraph
- Microsoft Automatic Graph Layout
精彩评论