pub fn modularity(g: &Snapshot, labels: &[u32]) -> f64Expand description
How good a partition of g is, at resolution one.
labels is one label per node in dense id order, and the labels themselves
mean nothing beyond which nodes share one, so anything that groups the nodes
will do: a Components from any of these algorithms, or a caller’s own
grouping being checked against them.
§Panics
If labels is not one label per node.