Also called Topological sort and Kahn's algorithm.
fresh numbers
The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from topological order's own run on the numbers shown.
choose one
1question 1
On this map, how many roads are crossed off before the queue empties?
the answer, and why
the answer is A
G crosses off its 2 roads, which frees H. H has no road out. F still has E to F coming in, so the queue empties.
if you chose another
BThat is every road on the map, but 4 of them sit on a loop.
CThat adds F to B, but F is never taken.
DThat is a ring with no place free, but G has no road coming in.