find_interface_throats#

find_interface_throats(network, P1, P2)[source]#

Finds edges shared between two sets of nodes

Parameters:
  • g (dict) – The graph dictionary

  • inds_1 (array_like) – A list of indices defining the first set of nodes

  • inds_2 (array_like) – A list of indices defining the second set of nodes

Returns:

edges – List of edge indices connecting the two given sets of nodes

Return type:

ndarray