結果 : bfs in python implementation