easygraph.functions.centrality.laplacian module#
- easygraph.functions.centrality.laplacian.laplacian(G, n_workers=None)[source]#
Returns the laplacian centrality of each node in the weighted graph
- Parameters:
G (graph) – weighted graph
- Returns:
CL – the laplacian centrality of each node in the weighted graph
- Return type:
dict
Examples
Returns the laplacian centrality of each node in the weighted graph G
>>> laplacian(G)
Reference#
“Laplacian centrality: A new centrality measure for weighted networks.” Information Sciences, Volume 194, Pages 240-253, 2012.