Trace

Contents

Trace#

class discopy.traced.Trace(arg, left=False)[source]#

Bases: Box, Bubble

A trace is a diagram arg with 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

Diagram.trace()