Breadth-First Search 0-1 Breadth-First Search This is a variation of BFS. Pretty cool. https://cp-algorithms.com/graph/01_bfs.html