Add DFS graph iteration