绘制网络图 [英] Drawing a Web Graph
问题描述
我正在尝试在 ASP 网页上绘制图形.我希望 API 会有所帮助,但到目前为止我还没有找到.
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.
该图包含标记的节点和未标记的有向边.理想的输出类似于 this.
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?
推荐答案
绝对graphviz.您指向的维基百科链接上的图像是在 graphviz 中制作的.从其描述页面看,图形描述文件如下所示:
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 {
graph[bgcolor="transparent"];
node [fontname="Bitstream Vera Sans", fontsize="22.00", shape=circle, style="bold,filled" fillcolor=white];
edge [style=bold];
1;2;3;4;5;6;
6 -- 4 -- 5 -- 1 -- 2 -- 3 -- 4;
2 -- 5;
}
如果将该代码保存到文件 input.dot 中,那么他们用于实际生成图形的命令可能是:
If that code were saved into a file input.dot, the command they would have used to actually generate the graph would probably have been:
neato -Tsvg input.dot > graph.svg
这篇关于绘制网络图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!