Swap#

class discopy.compact.Swap(left, right)[source]#

Bases: discopy.symmetric.Swap, discopy.ribbon.Braid, Box

A compact swap is a symmetric swap and a ribbon braid.

Parameters
  • left (pivotal.Ty) – The type on the top left and bottom right.

  • right (pivotal.Ty) – The type on the top right and bottom left.