grape.general_graph.GeneralGraph.indegree_centrality_kernel

GeneralGraph.indegree_centrality_kernel(nodes, graph_size)[source]

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

in-degree centrality dictionary keyed by node.

Return type

dict

Raises

ValueError