Implements the sparse-graph algorithm from: "A New Approach to Incremental Cycle Detection and Related Problems" - Bender, Fineman, Gilbert, Tarjan
Implements the sparse-graph algorithm from: "A New Approach to Incremental Cycle Detection and Related Problems" - Bender, Fineman, Gilbert, Tarjan