openoptics.OpticalRouting.find_send_port

Contents

openoptics.OpticalRouting.find_send_port#

openoptics.OpticalRouting.find_send_port(topo: networkx.Graph, src, dst)[source]#

Helper function to find the send port given the src and dst nodes in the topo.

Parameters:
  • topo – Network topology graph

  • src – Source node

  • dst – Destination node

Returns:

The send port of src