netcenlib.algorithms.pdi_centrality module

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

Compute the Pairwise Disconnectivity Index for each node in the graph G.

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

Parameters:

network – NetworkX graph

Returns:

Dictionary of nodes with computed centrality as the value