The BFS Algorithm

The BFS algorithm uses: Note that the following pseudo-code uses indenting to indicate block structure. That is, consecutive statements at the same indentation level are all to be executed in the same block.