Drawing clustered graphs in Python
Asked Answered
D

1

6

I already have a way of clustering my graph, so the process of clustering isn't the issue here. What I want to do is, once we have all the nodes clustered - to draw the clustered graph in Python, something like this:

enter image description here

I looked into networkx, igraph and graph-tool, but they seem to do the clustering, but not the drawing. Any ideas and propositions of what library should I use for drawing the already clustered graph, which will minimize the number of crossing links?

Debenture answered 22/5, 2013 at 14:37 Comment(0)
G
1

Take a look at GraphViz http://www.graphviz.org/Gallery/directed/cluster.html There's a Python binding for that, but I have to say I always create the text files directly as they're easy enough to write. Don't be fooled by the plain-looking examples, every aspect of your graph is highly customizable and you can make some pretty nifty graph visualizations with it. Not sure about nested clusters though, never tried that out.

Gloxinia answered 29/7, 2013 at 22:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.