1.安装
终端->pip install igraph->pip install python-igraph->pip install pycairo
pycairo用于绘图;python-igraph用于支持igraph的运行环境
2.使用
import igraph
g=igraph.Graph.Read_GML(‘Geant2009.gml‘)
igraph.plot(g)
2023-11-29 16:31:04
1.安装
终端->pip install igraph->pip install python-igraph->pip install pycairo
pycairo用于绘图;python-igraph用于支持igraph的运行环境
2.使用
import igraph
g=igraph.Graph.Read_GML(‘Geant2009.gml‘)
igraph.plot(g)