Bfs Algorithm Using Python With Elasticsearch