output

Wouldn't it be sufficient just to print the cycle? Fwend (talk) 14:23, 26 February 2016 (UTC)

Not a bad idea. My choice of output was influenced by the needs of an algorithm that uses Cycle detection as a subroutine. Printing the cycle would make it easier to test and visualize the results. --Paul.chernoch (talk) 18:58, 26 February 2016 (UTC)

Return to "Cycle detection" page.