How it works
Representations
Adjacency lists suit sparse graphs; adjacency matrices suit dense graphs or fast edge lookups.
Core algorithms
BFS and DFS for traversal, Dijkstra for weighted shortest paths, and topological sort for ordering.
Interview uses
Dependency resolution, social networks, maps, and scheduling map naturally to graphs.