Defined in File GroupHarmonicCloseness.hpp
public NetworKit::Algorithm
(Class Algorithm)
Public Functions
Approximation algorithm for the group-harmonic maximization problem. The computed solutions have a guaranteed $\lambda(1 - \frac{1}{2e})$ (directed graphs) and $\lambda(1 - \frac{1}/{e})/2$ (undirected graphs) approximation ratio, where $\lambda$ is the ratio between the minimal and the maximal edge weight. The algorithm is the one proposed in Angriman et al., ALENEX 2021. The worst-case running time of this approach is quadratic, but usually much faster in practice.
G – The input graph.
k – Size of the group of nodes.
Runs the algorithm.
Public Static Functions
Computes the group-harmonic score of the group of nodes in the given range.
graph – The input Graph.
first, last – The range that contains the vertices in the group.
The score of the group of nodes in the given range.