01Chapter 1: Representing Graphs for Cycle DetectionThis chapter assumes you can read Python lists, functions, and loops. You should know what vertices, edges, directed graphs, and undirected graphs are. You should also understand depth-first search (DFS) at a conceptual level and Big-O notation.2 min read
03Chapter 3: Recovering the Cycle ItselfThis chapter assumes you know three-color DFS (white, gray, black), Kahn's algorithm, and Big-O notation. It covers how to recover the cycle you detected, how to scale DFS to large graphs, a special case for functional graphs, and how to pick a method.2 min read