DFS permutations