问题
I'm looking for a python library that will allow me to interactively draw networks and graphs and attach data to nodes and edges.
I have found two libraries for Java that seem to do what I need: JUNG and piccolo2d. Are there any python equivalents to these?
回答1:
Have a look at:
- matplotlib - Here are some graphs made with it.
- networkx
- igraph
回答2:
Using GNU/Radio Companion, I was able to accomplish what I needed by performing some extensions here and there.
It is not the best solution since it introduces some ugly dependencies, but it works for now.
回答3:
I've got an example of doing this here: http://brandonrose.org/ner2sna
I show how you can auto-generate a D3.js chart using Python.
来源:https://stackoverflow.com/questions/5718204/interactive-python-network-graph-modeling