All Categories

Graphs

DFS/BFS on nodes and edges.

Connected components, cycle detection, topological sort.

Key Concepts

Adjacency List

Map node to neighbors

Union-Find

Track components

Problems (57)