grape.general_graph.GeneralGraph.local_efficiency_kernel

GeneralGraph.local_efficiency_kernel(nodes, nodal_efficiency)[source]

Compute local efficiency, starting from nodal efficiency attribute.

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

  • nodal_efficiency (dict) – nodal efficiency dictionary keyed by node.

Returns

local efficiency dictionary keyed by node.

Return type

dict