grape.general_graph.GeneralGraph.outdegree_centrality_kernel

GeneralGraph.outdegree_centrality_kernel(nodes, graph_size)[source]

Compute out-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

out-degree dictionary keyed by node.

Return type

dict

Raises

ValueError