PortKind#
- class discopy.cmap.PortKind(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
enum.StrEnumThe four kinds of ports in a
CMap.- property is_negative: bool#
Whether the port is a box input or map output.
- property is_positive: bool#
Whether the port is a map input or box output.
- property is_boundary: bool#
Whether the port belongs to the map boundary.
- property is_input: bool#
Whether the port is drawn on the input side.
- property is_output: bool#
Whether the port is drawn on the output side.