Connected components finder using DFS Graph traversal.