Defined in File CoreDecomposition.hpp
public NetworKit::Centrality
(Class Centrality)
Computes k-core decomposition of a graph.
Public Functions
Create CoreDecomposition class for graph G. The graph may not contain self-loops.
Contains the parallel algorithm by Dasari, N.S.; Desh, R.; Zubair, M., “ParK: An efficient algorithm for k-core decomposition on
multicore processors,” in Big Data (Big Data), * 2014 IEEE International Conference.
TODO complexity?
The algorithm runs in parallel if the usage of a bucket priority queue is not enforced and if the node ids of the input graph are continuous (i.e., numberOfNodes() = upperNodeIdBound()).
G – The graph.
normalized – If set to true
the scores are normalized in the interval [0,1].
enforceBucketQueueAlgorithm – If set to true
, uses a bucket priority queue data structure. This it is generally slower than ParK but may be more flexible. TODO check
storeNodeOrder – If set to true
, the order of the nodes in ascending order of the cores is stored and can later be returned using getNodeOrder(). Enforces the sequential bucket priority queue algorithm.
Perform k-core decomposition of graph passed in constructor.
Get the k-shells as a partition object
the k-shells as a Partition
Get the theoretical maximum of centrality score in the given graph.
The theoretical maximum centrality score.