RuntimeError
This exception is raised when an edge is being added in a DAG, while this edge would create a cycle.