tags:

views:

184

answers:

3

I have installed matplotlib and networkx packages. Can someone tell me the function present in these packages that can be used to generate a social network graph like graph for film actor collaborations, co-authorship or even a graph for a P2P network.

+2  A: 

I think that matplotlib is not too suitable for this task. Try PIL instead.

Also, this post shows how Christian S. Perone used Ubigraph to create 3D visualization of Twitter users

bgbg
+3  A: 

I would use PyDot, it's the pythton binding of the graphviz library.

fortran
+1  A: 

Count this as a second vote for Graphviz. The format is pretty simple, and the layout engine is powerful. Having installed Graphviz, you could then add PyDot to run things, or simply write your data to files with format showing the graph structure.

Look at the Graphviz user's manual (pdf).

If you wanted to roll your own, matplotlib would be my choice, but layout is complicated.

telliott99