Network.renumbered(from_ports, to_ports)[source]

Return a renumbered Network, leave self alone.

  • from_ports (list-like) – List of port indices to change. Size between 1 and N_ports.

  • to_ports (list-like) – List of desired port indices. Size between 1 and N_ports.

  • NB (from_ports and to_ports must have same size.)


ntwk – Resulting renumbered Network

Return type:

Network object

See also

renumber, flip, flipped