绘制网络图 [英] Drawing a Web Graph

查看:127
本文介绍了绘制网络图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想借鉴的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.

图形包含标记的节点和未标记的定向边。
理想的输出会是这样这个

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

有人知道什么pre-建比可以帮助?

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;
}

如果是code被保存到一个文件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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆