pub fn louvain_communities<N, E, Ix>(
graph: &Graph<N, E, Ix>,
) -> CommunityStructure<N>
Expand description
Detects communities in a graph using the Louvain method
The Louvain method is a greedy optimization algorithm that attempts to maximize the modularity of the network partition.
§Arguments
graph
- The undirected graph to analyze
§Returns
- A community structure with node assignments and modularity score