結果 : dfs vs bfs python implementation