Every time you ask for directions, your phone solves a graph problem: find the quickest path through a network of roads in a fraction of a second. Build your own network and run the algorithm yourself.
Start here β this is the source that inspired this exploration.
A road map is a graph: junctions are vertices, roads are edges, and each edge has a weight β the time it takes to travel. Finding the quickest route from Home to Coffee is exactly the shortest-path problem, and the classic method is Dijkstra's algorithm, which settles the nearest unvisited point step by step until the destination is reached. It is completely doable by hand on a small network, and the same idea (plus some clever shortcuts) runs inside every satnav. Build a network of places you actually go, find your own best routes, and explore what happens when the weights change β that's rush hour. Graph theory here (syllabus topics 3.14 to 3.16) is AI HL content, so if you are doing AI SL or an AA course, treat this as an extension beyond your normal syllabus.