5 patterns
5 patterns · Updated 7/19/2026
BFS, DFS, topological sort, and union-find — the graph patterns that show up in almost every interview loop.