Interactive Python Network/Graph Modeling

2019-03-18 09:56发布

问题:

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.