Extract code into struct CycleDetector. This allow full encapsulation of the algorithm and resetting of the helper structs in a safe way.
Extract code into struct CycleDetector. This allow full encapsulation
of the algorithm and resetting of the helper structs in a safe way.

mneumann/acyclic-network-rs