Image: Merian, Matthäus (1593-1650). Cartographe, public domainThe seven bridges of Königsberg, as Euler saw them
Königsberg in 1735 had seven bridges over the river Pregel. Two of them joined the island of Kneiphof to the northern bank, two joined it to the southern bank, one led from the island to the land between the two arms of the river in the east, and that eastern land had one bridge to each bank. The townspeople had a question they asked for fun on Sunday walks: can one start somewhere, cross each of the seven bridges exactly once, and come home? Nobody had managed it. Nobody had shown it impossible either.
The question reached Leonhard Euler, then 28 years old and at the Academy of Sciences in St Petersburg, through the mayor of Danzig, Carl Leonhard Gottlieb Ehler, who wrote to him in 1736 and had raised the matter earlier. Euler's first reaction, in a letter to the Italian mathematician Giovanni Marinoni, was that the problem was banal and had little to do with mathematics. He solved it anyway, presented the solution to the Academy on 26 August 1735, and the paper was printed in 1741 in the Academy's volume for the year 1736. That is why the paper is cited as Euler (1736), and why the subject it started is said to be born in that year.
What Euler was actually asked
Euler read the problem more generally than the townspeople had posed it. He asked, for any arrangement of rivers and bridges whatsoever, how one can decide whether a walk crossing every bridge exactly once exists, and whether it can return to its starting point. The title of the paper says so: Solutio problematis ad geometriam situs pertinentis, the solution of a problem belonging to the geometry of position. The phrase geometria situs was Leibniz's. It meant a kind of geometry that cares about how things are connected and not about lengths or angles, and Euler was pleased to have found a real problem that belonged to it.
The paper is about four pages long in a modern edition. It labels the four pieces of land A, B, C, and D, with A for the island, and the bridges a to g. A walk is then written as a sequence of letters for the land masses visited, and the whole argument is about such sequences.
The argument, in Euler's own terms
A walk that crosses seven bridges passes through eight land masses in sequence, counting repetitions, because every crossing adds one letter. So Euler asks how often each letter must appear in a sequence of length eight. His key observation concerns a land mass with an odd number of bridges. If a land mass has one bridge, its letter appears once in the walk. If it has three bridges, the letter must appear twice, whether the walk starts there or not. If it has five, three times. In general, a land mass with an odd number \(k\) of bridges appears \((k + 1)/2\) times in the sequence.
Now count. The island A has five bridges, so it appears three times. Each of B, C, and D has three bridges, so each appears twice. The required length is therefore 3 + 2 + 2 + 2 = 9 letters. But a walk over seven bridges has exactly eight. The letters do not fit, and the walk cannot exist. Euler then observes that the same counting works for any map at all, and states the general rule: if more than two land masses have an odd number of bridges, no such walk exists; if exactly two have an odd number, the walk exists but must start at one of them and end at the other; if none has an odd number, the walk exists and can start anywhere.
Euler proves the impossibility half of this with care and the possibility half with much less. He writes that once one has seen that a walk is not excluded, it is easy to find one by trial, and he gives a method for writing it down. The full proof that an even degree everywhere suffices, for a connected map, was supplied by Carl Hierholzer and published in 1873, two years after his death, from notes a colleague had taken of a conversation. The Graph Theory Masterclass gives Hierholzer's splicing argument in Unit 3, which is the free sample unit.
Why there is no graph in the paper
Every textbook draws the Königsberg problem as four dots and seven lines. Euler did not. His Figure 1 is a map: the river, the island, the eastern land, and the seven bridges drawn as little rectangles, each with its letter. Figure 2 is a second, invented map with two islands and fifteen bridges, on which he tests his general rule. There are no dots joined by lines anywhere in the paper.
The reason is simple. The idea of abstracting a situation to vertices and edges did not exist. The word graph in this sense was coined by James Joseph Sylvester in a note in Nature on 7 February 1878, 142 years after Euler, and the picture of a graph as points and lines was a chemist's picture first: August Kekulé drew benzene as a ring of six carbon atoms in 1865 and 1866, and Arthur Cayley counted alkane isomers by counting trees in 1874. Euler worked with letters and sequences, which is the same mathematics in a different notation. His counting of how many times a letter appears is exactly what we now call the degree of a vertex, and his rule is the statement that a connected graph has a closed walk using every edge once if and only if every vertex has even degree.
Euler also did not find the result deep. In the letter to Marinoni he says the solution rests on reasoning alone and has almost nothing to do with mathematics. That was the respectable view in 1735: mathematics was about quantity, and a problem with no lengths in it was a puzzle. The subject that grew from the puzzle has had a journal of its own since 1977 and fills a week of the curriculum of every university mathematics syllabus.
The bridges today
Königsberg is Kaliningrad, a Russian exclave on the Baltic, since 1946. Of Euler's seven bridges, two were destroyed in the bombing of August 1944 and were never rebuilt. Two others were demolished after the war and replaced by a road bridge that carries a highway over the island. The remaining three stand, one of them rebuilt in 1935. That leaves five bridges on the sites Euler wrote about, as counted in the early 2020s: the island now has three bridges, the eastern land three, and each bank two.
Run Euler's rule on the new map. Two land masses have an odd number of bridges, the island and the eastern land, so a walk crossing each bridge once now exists. It must start on one of them and end on the other, and it cannot come home. A closed tour is still impossible, for the same reason as in 1735. The sample unit asks the reader to check this with the degrees 3, 3, 2, 2.
Reading Euler
The Latin original and an English translation are both easy to find. The Euler Archive lists the paper as E53, and the archive page links to the scanned original in the Commentarii of the Academy. A translation appears in the collection Graph Theory 1736 to 1936 by Biggs, Lloyd, and Wilson, which prints the paper as its first document. The MacTutor biography places it in the first of Euler's two St Petersburg periods, when he was also working on the problems that gave his name to half of mathematics.
The paper takes an afternoon to read, and the counting argument above is all the mathematics it contains. It is still a good afternoon. Euler takes a question people asked for fun, strips it of everything that does not matter, and finds a rule that decides every map that will ever be drawn. That is the method of the subject, and it has not changed.


