algorithms.tutorialhorizon.com
Depth First Search in Disconnected Graph | Algorithms
Given a Graph in which one or more vertices are disconnected, do the depth first traversal.