Trace#
- class discopy.traced.Trace(arg, left=False)[source]#
Bases:
Box,discopy.monoidal.BubbleA trace is a diagram
argwith an output wire fed back into an input.- Parameters:
arg (Diagram) – The diagram to trace.
left – Whether to trace the wires on the left or right.
See also