netcenlib.algorithms.diffusion_degree_centrality module

netcenlib.algorithms.diffusion_degree_centrality.diffusion_degree_centrality(network: ~networkx.classes.graph.Graph, lambda_factor: [<class 'float'>, typing.List[float]] = 1) dict[str, float][source]

Compute the Diffusion Degree Centrality for each node in the graph G.

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

Parameters:
  • network – NetworkX graph

  • lambda_factor – Vector or numeric value providing propagation

probability of nodes, default 1 :return: Dictionary of nodes with computed centrality as the value