Category#

class discopy.frobenius.Category(ob=None, ar=None)[source]#

Bases: discopy.compact.Category

A hypergraph category is a compact category with a method spiders.

Parameters
  • ob (type) – The objects of the category, default is Ty.

  • ar (type) – The arrows of the category, default is Diagram.

ob#

alias of Ty

ar#

alias of Diagram