grape.general_graph.GeneralGraph.nodal_efficiency_kernel

GeneralGraph.nodal_efficiency_kernel(nodes, efficiency, graph_size)[source]

Compute nodal efficiency, starting from efficiency attribute.

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

  • efficiency (dict) – nested dictionary with key corresponding to source, while as value a dictionary keyed by target and valued by the source-target efficiency.

  • graph_size (int) – graph size.

Returns

nodal efficiency dictionary keyed by node.

Return type

dict

Raises

ValueError