algorithms.tutorialhorizon.com
Graph – Detect Cycle in Undirected Graph using DFS (Depth-First Search) | Algorithms
Given undirected graph write an algorithm to find out whether graph contains cycle or not using DFS (Depth-First Search)