aryagraph.core.exceptions.NegativeCycleError#

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

Bases: AryaGraphError, ValueError

A shortest-path computation met a negative-weight cycle.