Extract core part of the cycle detection algorithm (minus memory allocation and initialization) into cycle_algo().
Extract core part of the cycle detection algorithm (minus memory
allocation and initialization) into cycle_algo().

mneumann/acyclic-network-rs