Defined in File KatzCentrality.hpp
public NetworKit::Centrality
(Class Centrality)
Computes the Katz centrality of the graph. NOTE: There is an inconsistency in the definition in Newman’s book (Ch. 7) regarding directed graphs; we follow the verbal description, which requires to sum over the incoming edges (as opposed to outgoing ones).
Public Functions
Constructs a KatzCentrality object for the given Graph G. tol defines the tolerance for convergence. Each iteration of the algorithm requires O(m) time. The number of iterations depends on how long it takes to reach the convergence.
G – [in] The graph.
alpha – [in] Damping of the matrix vector product result, must be non negative. Leave this parameter to 0 to use the default value 1 / (max_degree + 1).
beta – [in] Constant value added to the centrality of each vertex
tol – [in] The tolerance for convergence.
Computes katz centrality on the graph passed in constructor.
Public Members