directed dfs done