BFS is naturally associated with queue. Visiting a node would be offering it to the queue. And polling it out of the queue to do level search.