我正在尝试使用python-igraph编写一个顶点聚类图形,并将其作为gexf文件保存。你有任何想法如何完成吗?我知道我可以写其他格式[http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/tutorial.html#igraph-and-the-outside-world],但我希望它是gexf格式。有一个pygexf包,但文档还不完善。
我正在尝试使用python-igraph编写一个顶点聚类图形,并将其作为gexf文件保存。你有任何想法如何完成吗?我知道我可以写其他格式[http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/tutorial.html#igraph-and-the-outside-world],但我希望它是gexf格式。有一个pygexf包,但文档还不完善。
看起来python-igraph不支持读取gexf文件。这是Graph.Read()的文档。 Graph.Read()
但是你可以使用其他工具(比如Gephi)将gexf文件转换为igraph支持的其他格式,比如gml文件。