Defined in File PLM.hpp
public NetworKit::CommunityDetectionAlgorithm
(Class CommunityDetectionAlgorithm)
Parallel Louvain Method - a multi-level modularity maximizer.
Public Functions
G – [in] input graph
refine – [in] add a second move phase to refine the communities
par – [in] parallelization strategy
gammamulti-resolution – [in] modularity parameter: 1.0 -> standard modularity 0.0 -> one community 2m -> singleton communities
maxIter – [in] maximum number of iterations for move phase
parallelCoarsening – [in] use parallel graph coarsening
turbo – [in] faster but uses O(n) additional memory per thread
recurse – [in] use recursive coarsening, see http://journals.aps.org/pre/abstract/10.1103/PhysRevE.89.049902 for some explanations (default: true)
Detect communities.
Public Static Functions
Coarsens a graph based on a given partition and returns both the coarsened graph and a mapping for the nodes from fine to coarse.
graph – The input graph
zeta – Partition of the graph, which represents the desired state of the coarsened graph
pair of coarsened graph and node-mappings from fine to coarse graph
Calculates a partition containing the mapping of node-id from a fine graph to a cluster-id from partition based on a coarse graph.
Gcoarse – Coarsened graph
zetaCoarse – Partition, which contains information about clusters in the coarsened graph
Gfine – Fine graph
nodeToMetaNode – mapping for node-id from fine to coarse graph
Partition, which contains the cluster-id in the coarse graph for every node from the fine graph