grape.general_graph.GeneralGraph.closeness_centrality

property GeneralGraph.closeness_centrality

Closeness centrality of the graph. Returns the closeness centrality if already stored in the nodes. Otherwise, the attribute is computed.

Returns

closeness_centrality attribute for every node.

Return type

dict