Defined in File HarmonicCloseness.hpp
public NetworKit::Centrality
(Class Centrality)
Public Functions
Constructs the HarmonicCloseness class for the given Graph G. If the closeness scores should be normalized, then set normalized to true
. The run() method takes O(nm) time, where n is the number of nodes and m is the number of edges of the graph.
G – The graph.
normalized – Set this parameter to false
if scores should not be normalized into an interval of [0, 1]. Normalization only for unweighted graphs.
Computes the harmonic closeness centrality on the graph passed in constructor.
Get the theoretical maximum of centrality score in the given graph.
The maximum centrality score.