Bfs Algorithm Using Python For Data