Network composition matches ports by name rather than by position. Two diagrams sharing a port name are wired through that port; unmatched ports become inputs / outputs of the resulting diagram.
▪
This is the diagram analogue of tensor-network contraction.
▪
A network is automatically converted to a grid layout when displayed; the conversion can be controlled by the network options below.