Codelength return from community_infomap of Igraph

Viewed 72

I need to get the codelength of a community-network in Python.

The documentation (https://igraph.org/python/doc/igraph.GraphBase-class.html#community_infomap) says that community_infomap returns the calculated membership vector and the corresponding codelength in a tuple. But the output of

gm.community_infomap(edge_weights=gm.es['weight'], vertex_weights=None, trials=10)

where gm is my directed weighted network is just an <igraph.clustering.VertexClustering, that gives me the clusters and its elements but nothing about the codelength.

Thanks in advance.

1 Answers
Related