grape.general_graph.GeneralGraph.degree_centrality

property GeneralGraph.degree_centrality

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

Returns

degree_centrality attribute for every node.

Return type

dict