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?

4

1 に答える 1

1

GraphViz を見てみましょう http://www.graphviz.org/Gallery/directed/cluster.html そのための Python バインディングがありますが、テキスト ファイルは簡単に記述できるので、常にテキスト ファイルを直接作成していると言わざるを得ません。単純に見える例にだまされないでください。グラフのあらゆる側面は高度にカスタマイズ可能であり、それを使用して非常に気の利いたグラフの視覚化を作成できます。ただし、ネストされたクラスターについてはわかりませんが、試したことはありません。

于 2013-07-29T22:28:29.927 に答える