Kenn Kenn -4 years ago 91
ASP.NET (C#) Question

Drawing a Web Graph

I'm trying to draw a graph on an ASP webpage. I'm hoping an API can be helpful, but so far I have not been able to find one.

The graph contains labeled nodes and unlabeled directional edges.
The ideal output would be something like this.

Anybody know of anything pre-built than can help?

Answer Source

Definitely graphviz. The image on the wikipedia link you are pointing at was made in graphviz. From its description page the graph description file looked like this:

graph untitled {
    node [fontname="Bitstream Vera Sans", fontsize="22.00", shape=circle, style="bold,filled" fillcolor=white];
    edge [style=bold];
    6 -- 4 -- 5 -- 1 -- 2 -- 3 -- 4;
    2 -- 5;

If that code were saved into a file, the command they would have used to actually generate the graph would probably have been:

neato -Tsvg > graph.svg
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download