01Chapter 1: Representing Graphs for TraversalThis chapter assumes you can write basic Python, use lists, dictionaries, and sets, and know graph terms such as vertex, edge, directed, and undirected. You should also be able to read Big-O notation.2 min read
02Chapter 2: Layers, Distances, and the BFS TreeThis chapter assumes you know Python dictionaries and sets, collections.deque, Big-O notation, and the basic BFS loop from the previous chapter.2 min read
03Chapter 3: BFS on Grids and Implicit GraphsThis chapter assumes you already know the core BFS loop, why it marks vertices visited when they are enqueued, and how it computes shortest distances in unweighted graphs. Here we apply that loop to several common problem shapes.2 min read