BFS via examples

In which we derive the breadth first search (BFS) algorithm via a sequence of examples.