netcenlib.algorithms.entropy_centrality module

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

Compute the Entropy Centrality for each node in the graph G.

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

Parameters:

network – NetworkX graph

Returns:

Dictionary of nodes with computed centrality as the value