Defined in File PageRankNibble.hpp
public NetworKit::SelectiveCommunityDetector
(Class SelectiveCommunityDetector)
Variant of PageRank-Nibble algorithm due to Andersen, Chung and Lang. Paper: Local Graph Partitioning using PageRank Vectors. URL: http://www.math.ucsd.edu/~fan/wp/localpartition.pdf Simplifications according to D. Gleich’s code at URL https://gist.github.com/dgleich/6201856.
Public Functions
Graph – g for which PageRank-Nibble is to be performed. Is treated as unweighted in current implementation.
alpha – Loop probability of random walk; smaller values tend to produce larger communities.
eps – Tolerance threshold for approximation of PageRank vectors.
seeds – Seed nodes for which a community is to be found.
Set of nodes that makes up the best community found around the seeds nodes.
Detect a community for the given seed node.
The default implementation calls expandOneCommunity(const std::set<node>&) with a set of one node.
seed – The seed to find the community for.
The found community as set of node.
Detect a single community for the given seed nodes.
This is useful if you know multiple nodes that should be part of the community. This method may throw an exception if the particular algorithm does not support multiple seeds.
seeds – The seeds for the community.
The found community as set of nodes.