Wire

Contents

Wire#

class discopy.braided.Wire(name, dom=None, cod=None, is_dagger=False)[source]#

Bases: discopy.monoidal.Wire

A braided object is a self-dagger monoidal.Wire. From braided categories onwards colours stop making sense, i.e. we cannot add colours to braids or swaps in any meaningful way, so it defaults to no colour.

Parameters:
  • name (str)

  • dom (Colour | None)

  • cod (Colour | None)

  • is_dagger (bool)