forest, dfs