aryagraph.core.exceptions.CycleError#

exception aryagraph.core.exceptions.CycleError(message: str, cycle: Sequence[Hashable] = ())[source]#

Bases: AryaGraphError, ValueError

An operation needs an acyclic graph but found a cycle.

cycle holds the offending cycle as a node list whose first and last elements are equal, e.g. ['a', 'b', 'c', 'a'] (empty if unknown).