The Seven Bridges of Königsberg: how a walking puzzle gave birth to graph theory
In the 18th century, the Prussian city of Königsberg (today Kaliningrad, Russia) was built around the Pregel river, with two islands connected to the banks and each other by seven bridges. Locals reportedly wondered: could you take a walk that crosses each bridge exactly once?
Euler's insight (1736) Swiss mathematician Leonhard Euler tackled the problem and showed it was impossible. More importantly, he showed how to think about it.
- The exact shapes and distances don't matter.
- Represent each land mass as a point (a vertex) and each bridge as a line (an edge).
- Count how many edges meet at each point (its "degree").
The rule On any walk, each time you enter a land mass you must leave it, using two bridges. So every land mass you pass through needs an even number of bridges. Only the start and end points can have an odd number.
That means a walk using every edge exactly once (now called an Eulerian path) exists only if a connected graph has zero or two vertices of odd degree. In Königsberg, all four land masses had an odd number of bridges, so the walk was impossible.
Why it matters Euler's abstraction is often considered the beginning of graph theory, which today underpins:
- Route planning and GPS navigation.
- Network design for the internet and power grids.
- Social network analysis.
- Scheduling, chemistry and DNA sequencing.
A modern twist Several of the original bridges were destroyed during World War II, and the layout has changed since then.
Your turn:
- Can you draw a house shape with an "X" inside in one stroke without retracing lines?
- What everyday problems can you think of as graphs?
Comments · 0
No replies yet — start the conversation.