Box#
- class discopy.ribbon.Box(name, dom, cod, data=None, z=0, **params)[source]#
Bases:
discopy.pivotal.Box
,discopy.balanced.Box
,Diagram
A ribbon box is a pivotal and balanced box in a ribbon diagram.
- Parameters:
name (str) – The name of the box.
dom (pivotal.Ty) – The domain of the box, i.e. its input.
cod (pivotal.Ty) – The codomain of the box, i.e. its output.