> I am trying to use modularity(), but i don't know how to create a weight list > for the WEIGHT parameter. How can you do this?
If the edges of your graph already have a “weight” edge attribute, just use that: q = g.modularity(membership, weights=g.es[“weight”]) Otherwise, construct a list where item i is the weight of edge i and use that. T. _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
