Add DFS to graph