Defined in File PLP.hpp
public NetworKit::CommunityDetectionAlgorithm
(Class CommunityDetectionAlgorithm)
As described in Ovelgoenne et al: An Ensemble Learning Strategy for Graph Clustering Raghavan et al. proposed a label propagation algorithm for graph clustering. This algorithm initializes every vertex of a graph with a unique label. Then, in iterative sweeps over the set of vertices the vertex labels are updated. A vertex gets the label that the maximum number of its neighbors have. The procedure is stopped when every vertex has the label that at least half of its neighbors have.
Public Functions
Constructor to the label propagation community detection algorithm.
G – [in] input graph
theta – [in] updateThreshold: number of nodes that have to be changed in each iteration so that a new iteration starts.
Constructor to the label propagation community detection algorithm.
G – [in] input graph
baseClustering – [in] optional; the algorithm will start from the given clustering.
theta – [in] updateThreshold: number of nodes that have to be changed in each iteration so that a new iteration starts.
Run the label propagation clustering algorithm.
The algorithm runs until a number of nodes less than the threshold is updated.
th – The threshold.