結果 : dfs algorithm implementation in python