How to detect all cycles in graph?

Topics: algorithm, graph
Feb 23, 2012 at 8:19 PM

What alg should I use to detect cycle in graph and trace path of this?

 

Thanks!

Pavel.