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)