noc.core.graph.nexthop

Module Contents

noc.core.graph.nexthop.iter_next_hops(G, source, target)
Yields next hops (direct neighbors of `source` on the possible paths to `target`)
and shortest path lengths
Parameters:
  • G – nx.Graph instance
  • source – Source node
  • target – Destination node
Returns:

Yields (neighbor, path length)