3 ms·
(You'll probably want this link instead: https://en.wikipedia.org/wiki/Cycle_(graph_theory)#Cycle_detection https://en.wikipedia.org/wiki/Cycle_(graph_theory)#C
by Sharlin 8y ago
(You'll probably want this link instead: https://en.wikipedia.org/wiki/Cycle_(graph_theory)#Cycle_detection https://en.wikipedia.org/wiki/Cycle_(graph_theory)#Cycle_det...)
- jpitz 8y agoIt was Floyd's Algorithm I was thinking of.