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