Skip to main content

modularity

Function modularity 

Source
pub fn modularity(g: &Snapshot, labels: &[u32]) -> f64
Expand 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.