dfs for CloneGraph