Function parallel_modularity
Source pub fn parallel_modularity<N, E, Ix>(
graph: &Graph<N, E, Ix>,
communities: &HashMap<N, usize>,
) -> f64
Expand description
Parallel implementation of modularity computation
Computes graph modularity using parallel processing for better performance
on large graphs.
§Arguments
graph - The graph to analyze
communities - Node-to-community mapping
§Returns