Defined in File KadabraBetweenness.hpp
public NetworKit::Algorithm
(Class Algorithm)
Public Functions
Approximation of the betweenness centrality and computation of the top-k nodes with highest betweenness centrality according to the algorithm described in Borassi M., and Natale E. (2016): KADABRA is an ADaptive Algorithm for Betweenness via Random Approximation. Parallel implementation by Van der Grinten A., Angriman E., and Meyerhenke H.: Parallel Adaptive Sampling with almost no Synchronization, Euro-Par 2019. https://link.springer.com/chapter/10.1007/978-3-030-29400-7_31 ArXiv pre-print: https://arxiv.org/abs/1903.09422.
If k = 0 the algorithm approximates the betweenness centrality of all vertices of the graph so that the scores are within an additive error err with probability at least (1 - delta). Otherwise, the algorithm computes the exact ranking of the top-k nodes with highest betweenness centrality. The algorithm relies on an adaptive random sampling technique of shortest paths and the number of samples in the worst case is w = ((log(D - 2) + log(2/delta))/err^2 samples, where D is the diameter of the graph. Thus, the worst-case performance is O(w * (|E| + |V|)), but performs better in practice.
G – The graph
err – Maximum additive error guaranteed when approximating the betweenness centrality of all nodes.
delta – probability that the values of the betweenness centrality are within the error guarantee.
deterministic – If true, the algorithm guarantees that the results of two different executions is the same for a fixed random seed, regardless of the number of threads. Note that this guarantee leads to increased computational and memory complexity. Default: false.
k – the number of top-k nodes to be computed. Set it to zero to approximate the betweenness centrality of all the nodes.
unionSample – algorithm parameter that is automatically chosen.
startFactor – algorithm parameter that is automatically chosen.
Executes the Kadabra algorithm.
The ranking of the nodes according to their approximated betweenness centrality.
Nodes of the graph sorted by their approximated betweenness centrality.
Sorted list of approximated betweenness centrality scores.
Approximated betweenness centrality score of all the nodes of the graph.
Upper bound to the number of samples.
Protected Functions
Protected Attributes