Please subscribe to the official Codeforces channel in Telegram via the link ×

Finding cycle in (directed) graph

Revision en1, by natofp, 2019-01-30 13:48:37


can anyone provide a good source, or method to find any cycle in directed graph? The answer should be the list of edges ( pairs of vertices). I did not manage to find anything satisfying enough.

Thanks in advance.


  Rev. Lang. By When Δ Comment
en1 English natofp 2019-01-30 13:48:37 257 Initial revision (published)