我需要用Python获取社区网络的代码长度
文档(https://igraph.org/python/doc/igraph.GraphBase-class.html#community_infomap)说community_infomap返回计算出的成员向量和元组中相应的代码长度。但是
gm.community_infomap(edge_weights=gm.es['weight'], vertex_weights=None, trials=10)
其中gm是我的有向加权网络,只是一个<;igraph.clustering.VertexClustering,它提供了集群及其元素,但与代码长度无关
提前谢谢
您似乎正在查看GraphBase.community\u infomap的文档。请查看Graph.community\u infomap的文档:
https://igraph.org/python/doc/igraph.Graph-class.html#community_infomap
它解释了
codelength
是返回对象的一个属性相关问题 更多 >
编程相关推荐