Add DFS over edges.