grape.general_graph.GeneralGraph.degree_centrality_kernel

GeneralGraph.degree_centrality_kernel(nodes, graph_size)[source]

Compute degree centrality.

Parameters
  • nodes (list) – list of nodes for which to compute the efficiency between them and all the other nodes.

  • graph_size (int) – graph size.

Returns

degree centrality dictionary keyed by node.

Return type

dict

Raises

ValueError