Network modularity measures excess within-community edge weight relative to a network null model based on degrees of vertices. For an undirected unweighted graph, its standard form is . A single community containing every vertex has ; a partition with more internal connectivity than expected can have positive .
New to topics? Read the docs here!