Caffeinated Coder
Book an appointment
Lesson 16 · Data structures

Graphs

A graph is a set of things (vertices) joined by connections (edges). Road maps, social networks, the web and the internet's routers are all graphs. Drive a little car around six towns to see edges, paths, cycles and connected components, then watch the same map stored two ways, as an adjacency list and as an adjacency matrix, and see what each costs in memory.

10 min11 steps5 questionsBeginner
Fig 16 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.