Python Library/Module for (simple) Undirected Graphs
I've been searching the web for the past hour trying to find a library for python that will help me create and draw simple undirected graphs. It looks like NetworkX (http://networkx.lanl.gov/index.html) is by far the most popular one but unfortunately it doesn't support drawing for Python 3.
Any suggestions? I don't need anything super powerful or complex, just basic (even undirected) graph creation and drawing (and maybe exporting as png, jpeg, etc). You know, just a few nodes and edges.
NetworkX提到了很多使用Graphviz绘制图形的方法。
Have you looked at python-graph library? It is a library and you can use it to draw graphs as you might find it useful. Simple Undirected Graphs is very much possible. I see that they mention about Python3.1 support too. It uses Graphviz to you export it to pngs. (I am unable to find out its py3k support)
Google Chart has (ugly) Graphviz support nowadays, maybe that can work?
GChartWrapper is a good API that runs on Python 3, so check that out. Otherwise you can just make calls with urllib...
http://pypi.python.org/pypi/GChartWrapper/
链接地址: http://www.djcxy.com/p/29212.html上一篇: 堆栈溢出
下一篇: 用于(简单)无向图的Python库/模块