Drawing clustered graphs in Python

I already have a way to cluster my chart, so the clustering process is not a problem here. What I want to do - once we have collected all the nodes - draw a clustered graph in Python, something like this:

enter image description here

I looked at networkx, igraph and graph-tool, but they seem to perform clustering, but not drawing. Any ideas or suggestions on which library I should use to draw an already grouped graph that minimizes the number of overlapping links?

+6
source share
1 answer

Take a look at GraphViz http://www.graphviz.org/Gallery/directed/cluster.html There is a Python binding for this, but I have to say that I always create text files directly, as they are easy enough to write. Do not be fooled by the usual examples, every aspect of your graph is very customizable, and you can make pretty beautiful graphical renderings with it. Not sure if nested clusters, however, have ever tried this.

+1
source

Source: https://habr.com/ru/post/945603/


All Articles