The mapping lines below tell you which wire feeds which port, matching the definition of wiring-diagram morphisms (f_in, f_out) in W.
This is the same data structure used by the canvas renderer.