incremental-cycle-detect
Keeps a directed acyclic graph topologically sorted each time you add an edge or vertex to check for cycles.
Keeps a directed acyclic graph topologically sorted each time you add an edge or vertex to check for cycles.
A Directed Acyclic Graph (DAG) library with online cycle detection and topological ordering.