Blog

Graph Theory Masterclass Blog

Explanations, background, and advice for curious students.

Latest articles

What the greedy colouring algorithm gets wrong
4 Oct 2026

What the greedy colouring algorithm gets wrong

Colour the vertices one at a time, each with the first colour its neighbours have not used. On the right graph in the wrong order this uses n/2 colours where two would do. Here is the example, the order that fixes it, and what Brooks proved in 1941.

Three houses, three utilities, no crossings
28 Sep 2026

Three houses, three utilities, no crossings

Connect three houses to water, gas, and electricity without any pipe crossing another. The puzzle is at least a century old, it is impossible, the proof needs one formula of Euler, and it becomes possible on the surface of a coffee mug.

How a kidney exchange is a matching problem
22 Sep 2026

How a kidney exchange is a matching problem

A patient has a willing donor whose kidney does not fit. Another patient has the same problem. If each donor fits the other patient, two transplants become possible. Finding such swaps for thousands of pairs is a problem in graph theory, and solving it earned a Nobel prize.

Hamilton's Icosian game
16 Sep 2026

Hamilton's Icosian game

In 1859 William Rowan Hamilton sold a board game for 25 pounds. The object was to visit all twenty corners of a dodecahedron once each and return. The game failed. The problem it posed is still unsolved in the only sense that matters.

The party problem and Ramsey's theorem
10 Sep 2026

The party problem and Ramsey's theorem

Among any six people, three know each other or three are strangers. The proof takes half a page, five people show the number is right, and the theorem behind it was proved in 1928 by a 25-year-old for reasons that had nothing to do with parties.

Cayley's formula, or how many trees there are
4 Sep 2026

Cayley's formula, or how many trees there are

There are exactly 16 ways to join four labelled points into a tree and exactly 100 million ways to join ten. The formula is n to the power n minus 2, it is from 1889, and the proof that explains it is a code of 1918.

Six degrees of separation, measured
29 Aug 2026

Six degrees of separation, measured

Milgram sent letters across America in 1967 and counted the hands they passed through. Facebook ran the same experiment on 721 million people in 2011 and 1.6 billion in 2016. The numbers are 5.2, 4.74, and 3.57, and breadth-first search is how the last two were found.

The four colour theorem and the proof nobody could check by hand
23 Aug 2026

The four colour theorem and the proof nobody could check by hand

Four colours suffice for every map. The claim is from 1852, a wrong proof stood for eleven years, and the first correct proof needed 1,200 hours of computer time in 1976. Here is the whole story, up to the proof a computer checked in 2005.

How Dijkstra found the shortest path in twenty minutes
17 Aug 2026

How Dijkstra found the shortest path in twenty minutes

The algorithm behind every route planner was designed on a café terrace in Amsterdam in 1956, without pencil and paper, to show off a new computer. Here is the story, the three-page paper of 1959, and the algorithm run by hand on a small map.