JOVANA
Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
Back to the library
Mathematics 1736

Solution of a Problem Relating to the Geometry of Position

Leonhard Euler

Can one walk cross all seven bridges of Königsberg exactly once? Euler's “no” founded graph theory.

Choose your version
In depth · the introduction

Seven bridges, one city, and a simple dare: cross every bridge exactly once. The man who proved it couldn't be done quietly invented a whole new kind of mathematics.

The big idea

The old Prussian city of Königsberg sat on both banks of a river and around an island in it, all stitched together by seven bridges. A popular Sunday challenge was to walk through town crossing every bridge once and only once — never recrossing any. Nobody could manage it, but nobody could say why.

Leonhard Euler, the most prolific mathematician of his age, realised the layout of the streets didn't matter at all. What mattered was only this: how many bridges touch each piece of land. He showed that for the walk to be possible, almost every region has to have an even number of bridges — and Königsberg's regions all had an odd number. So the walk was impossible, and he could prove it without ever leaving his desk.

How it came about

The puzzle reached Euler around 1735 while he was at the St. Petersburg Academy. At first he thought it beneath serious mathematics — a riddle, not a theorem. But solving it forced him to invent a way of thinking about problems where, as he put it, position matters and distance does not: a “geometry of position” that Leibniz had named but no one had developed.

Instead of testing the thousands of possible routes, Euler found a single counting rule that settled the question in one stroke — and realised it would settle any town, with any number of bridges. He presented it to the Academy in 1735; it was printed in 1741. Mathematicians now date the birth of graph theory to this paper.

Why it mattered

Euler had shown that you can prove something impossible — cleanly, with certainty — and that the proof can throw away almost everything concrete about a problem and keep only its pattern of connections. That move, discarding distance and shape to study pure structure, opened two fields at once: graph theory, the mathematics of networks, and topology, the mathematics of shape without measurement.

A way to picture it

Think of a join-the-dots picture you want to trace in one continuous pen stroke, never lifting the pen and never going over a line twice. Try it and you'll feel the rule: every dot you pass through needs a line in and a line out — an even number of lines. Only the dot you start at and the dot you finish at may have an odd number. If three or more dots are “odd”, it can't be done in one stroke. Königsberg is four odd dots — hopeless.

Interactive map of Königsberg's four regions and seven bridges; click a bridge to remove or rebuild it, or switch on an eighth bridge. The widget shows each region's degree, highlights regions with an odd number of bridges, counts them, and states whether a walk crossing every bridge once exists: a round trip when no region is odd, an open walk when exactly two are, otherwise none.

Where it sits

Euler wrote at the dawn of a new mathematics of structure. The same instinct — keep the connections, drop the measurements — later grew into topology, and into his own formula linking the corners, edges and faces of any solid, V − E + F = 2. Today every map app finding a route, and every network you can name, are distant children of seven bridges in a Prussian town.

The original document
Original source text

§1 · The geometry of position

L. Euler · Commentarii academiae scientiarum Petropolitanae 8 (1741): 128–140 · presented 1735 (E53)
The branch of geometry that deals with magnitudes has been zealously studied throughout the past, but there is another branch that has been almost unknown up to now; Leibniz spoke of it first, calling it the “geometry of position” (geometria situs).
This geometry, Euler explains, is concerned not with measuring lengths or computing quantities but only with how things are positioned and connected. The Königsberg bridge puzzle, he says, seemed to belong to it — and offered a chance to give the almost-empty field a first real method.

§2 · The seven bridges

At Königsberg in Prussia, Euler writes, the river Pregel divides the town into regions linked by seven bridges. An island, Kneiphof, sits in the river; he labels the four land regions A, B, C and D, and the seven bridges a, b, c, d, e, f and g.
The question: can one arrange a single journey that crosses each of the seven bridges once and only once? Rather than chase the many possible routes by trial, Euler sets out to decide the matter by a general method.
[ … ]

§§3–13 · Routes become letters

Euler records a crossing by the sequence of regions it visits: a route is written as a string of capital letters, and crossing one bridge adds one letter. A journey over all seven bridges is therefore a string of eight letters — and a region reached by several bridges must appear several times in that string.
He turns the geography into bookkeeping: if a region is met by an odd number of bridges, he reasons, it must appear a fixed number of times in any complete route — about half the bridge-count, rounded up.
[ … ]

§§14–21 · The counting rule

Summing the required appearances, Euler reaches his criterion. Restated in today's terms: count, for each region, the number of bridges meeting it. If more than two regions have an odd number of bridges, no route crossing every bridge once can exist; if exactly two are odd, a route exists that must begin at one and end at the other; if none is odd, a route exists that returns to its start.
Königsberg's four regions carry 5, 3, 3 and 3 bridges — all four odd. Four odd regions exceed the two that any single journey allows, so the walk is impossible. Euler notes the same rule decides any such network at once, however many bridges it has.
Leonhard Euler · St. Petersburg Academy · presented 1735