Subset by DFS