How does BFS(G, s) build its levels $L_0, L_1, L_2, \ldots$?
$L_0$ contains only s, which is marked VISITED. To build $L_{i+1}$, BFS goes through every vertex v of $L_i$ and every UNEXPLORED edge of v: if the far vertex w is unexplored, the edge becomes a DISCOVERY edge, w is marked VISITED and appended to $L_{i+1}$; if w was visited before, the edge becomes a CROSS edge. BFS stops at the first empty level.
BFS(G, s):
L0 ← sequence holding s; label s VISITED; i ← 0
while Li is not empty:
Li+1 ← new empty sequence
for each vertex v in Li:
for each edge e of v that is UNEXPLORED:
w ← opposite(v, e)
if w is UNEXPLORED:
label e DISCOVERY; label w VISITED
append w to Li+1
else:
label e CROSS
i ← i + 1
The level sequences need only two operations, appending at the end and going through them in order, both $O(1)$ per element; BFS never searches a level, so a plain linked list or array list does.
A vertex is labelled VISITED at the moment it is appended to the next level, not later when it is processed. That matters: w may be a neighbour of several vertices of $L_i$, and marking it at once makes the later ones see it as visited, so w ends up in exactly one level and is reached through exactly one discovery edge.
Like DFS, BFS has a driver BFS(G) that labels everything UNEXPLORED and calls BFS(G, s) for each vertex still unexplored, one call per connected component. The output differs from DFS in the edge labels, CROSS where DFS has BACK, and in the partition of the vertices into levels.
Go deeper:
USFCA: breadth-first search — the same random graphs, with the BFS queue and the Visited and Parent tables shown while the search runs.