netcenlib.algorithms.average_distance_centrality module

netcenlib.algorithms.average_distance_centrality.average_distance_centrality(network: Graph) dict[str, float][source]

Compute the Average Distance Centrality for each node in the graph G.

Ref: https://www.centiserver.org/centrality/Average_Distance/

Parameters:

network – NetworkX graph

Returns:

Dictionary of nodes with computed centrality as the value