algorithms.tutorialhorizon.com
Graph – Detect Cycle in a Directed Graph | Algorithms
Given a directed graph write an algorithm to find out whether graph contains cycle or not.