Graph theory
Colouring a graph is simple to state and surprisingly hard to optimise.
This prototype introduces graph colouring through greedy algorithms. Learners can step through choices, see which colours are forbidden, and compare how ordering changes the result.
The aim is to connect a visual puzzle with deeper ideas in discrete maths, algorithms, timetabling and optimisation.
Graph colouring lab
Colour adjacent vertices differently
A graph colouring assigns colours to vertices so that no two connected vertices share a colour. Step through a greedy algorithm and compare how the chosen order affects the result.
Vertices
5
Edges
5
Colours used
0
Known minimum
Reveal by finishing
Joy in the process
The point is not just to finish. It is to notice, test and return.
These tools are invitations to explore. A good mistake, a surprising pattern or a question you cannot yet answer is part of the work, not a failure of it.
The challenge is deliberate: the site should support thinking, not remove the need for it.
Future extensions