aryagraph.core.exceptions.CycleError#
- exception aryagraph.core.exceptions.CycleError(message: str, cycle: Sequence[Hashable] = ())[source]#
Bases:
AryaGraphError,ValueErrorAn operation needs an acyclic graph but found a cycle.
cycleholds the offending cycle as a node list whose first and last elements are equal, e.g.['a', 'b', 'c', 'a'](empty if unknown).