Euler's Seven Bridges and the Birth of Topological Thinking
In 1736, mathematician Leonhard Euler solved a seemingly simple puzzle known as the Seven Bridges of Königsberg. By proving it was impossible to walk through the city and cross each of its seven bridges exactly once, Euler did more than solve a local brainteaser. He stripped away traditional geometric measurements like distance and angle, focusing entirely on how spaces are connected. This revolutionary approach laid the foundational stones for graph theory and launched a completely new branch of mathematics known as topology.
The puzzle originated in the city of Königsberg, Prussia (now Kaliningrad, Russia), which was divided by the Pregel River. The city's geography consisted of four distinct landmasses: two large islands and the two main riverbanks. Seven bridges connected these four landmasses in a specific network. Local citizens wondered if they could plan a stroll that crossed each of the seven bridges once and only once. Nobody could find a valid route, yet no one could prove it was mathematically impossible.
When Euler examined the problem, he realized that classical geometry could not solve it. The exact lengths of the bridges, the surface area of the islands, and the angles at which the bridges met the land had no bearing on the outcome. Instead, Euler recognized that the solution required a completely different framework—what earlier mathematician Gottfried Wilhelm Leibniz had termed geometria situs, or the "geometry of position."
To apply this new way of thinking, Euler used radical abstraction. He erased all geographic and spatial details of Königsberg. He reduced the four landmasses to simple points (now called vertices or nodes) and the seven bridges to connecting lines (now called edges). By doing this, he created the world's first mathematical graph. The physical shape and scale of the city no longer mattered; only the network of connections remained.
Looking at his simplified network, Euler analyzed the "degree" of each point—meaning the number of bridges connected to each landmass. He reasoned that unless a landmass is the very start or the very end of the walk, a traveler must both enter and exit it. Every visit to an intermediate landmass therefore requires two bridges. Consequently, for a valid walk to exist, all landmasses—or all but two (the start and end points)—must have an even number of bridges connected to them.
In Königsberg, all four landmasses were connected by an odd number of bridges: one island had five bridges, and the other three landmasses each had three. Because more than two points had an odd number of connections, Euler proved that the desired walk was strictly impossible.
This solution marked the birth of topological thinking. Topology is often described as "rubber-sheet geometry" because it studies the properties of spaces that remain unchanged even when those spaces are stretched, twisted, or deformed, so long as they are not torn or glued together. In Euler’s network, you could stretch the lines representing the bridges to be a hundred miles long or twist them into spirals, and the mathematical truth of the puzzle would not change.
By demonstrating that problems could be solved by looking purely at intrinsic connectivity rather than rigid measurements, Euler freed mathematics from the constraints of traditional geometry. This shift in perspective directly birthed topology, a field that is now essential for modern applications ranging from mapping the human brain and analyzing DNA to designing the infrastructure of the internet.