hexagon

Contents

hexagon#

discopy.braided.hexagon(cls, factory)[source]#

Take a factory for braids of atomic types and extend it recursively.

Parameters:
  • cls (type) – A diagram factory, e.g. Diagram.

  • factory (Callable) – A factory for braids of atomic types, e.g. Braid.

Return type:

Callable[[Ty, Ty], Diagram]