結果 : bfs algorithm program in python