結果 : iterative depth first search in python