Graphs
Nodes, edges, and the searches that ripple across them.
Graphs progress0 / 8
- Graph BasicsThings, plus the connections between them.5m
- List vs MatrixStore the edges you have, or a cell for every pair you don't.5m
- Breadth-First SearchSweep outward one ring at a time, using a queue.6m
- Depth-First SearchCommit to one branch until it dead-ends, then back up.5m
- Connected ComponentsCount the islands by starting a fresh sweep on each one.5m
- Shortest Path, UnweightedBFS already found it — store parents to read it back.6m
- Dijkstra's AlgorithmWhen edges cost different amounts, always settle the nearest first.6m
- Topological SortOrder the steps so nothing runs before what it depends on.6m