3

Windows 7 で Python で igraph を使用して 3D グラフを作成しようとしています。Cairo をインストールして、2D グラフをうまくプロットできますが、3D レイアウトを使用しようとすると、

TypeError: bounding boxes work for 2D layouts only

これまでの私のコードは次のとおりです。

graph = Graph.Lattice([11,6], circular=False) #The graph is only circular along one "edge" of the lattice
graph.add_edges(zip(range(0,66,11), range(10,66,11)))
visual_style = { 
            "layout": graph.layout("sphere",)
            }
plot(graph, **visual_style)
4

1 に答える 1