# 柯尼斯堡七桥问题

柯尼斯堡七桥问题（Seven Bridges of Königsberg）是一个数学问题，问的是：能否在普鲁士城市柯尼斯堡（Königsberg）中走一条路线，恰好一次走遍它的七座桥。1736年，莱昂哈德·欧拉（Leonhard Euler）证明了这样的走法不存在，并由此得出了被广泛视为图论第一个成果的结论。<sup>[1](https://eulerus.university/research/)</sup><sup> • </sup><sup>[2](https://www.cantab.net/users/michael.behrend/repubs/maze_maths/pages/euler_en.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 问题 | 是否存在一种走法，恰好一次走遍柯尼斯堡的七座桥——无论是否回到起点？ |
| 答案 | 不能。对应的图有四个奇度顶点，因此既不存在欧拉回路，也不存在欧拉路径。<sup>[3](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)</sup> |
| 欧拉判据 | 一个连通图存在欧拉回路，仅当每个顶点都是偶度；存在欧拉路径，当且仅当恰有0个或2个奇度顶点。<sup>[3](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)</sup><sup> • </sup><sup>[4](https://be-oi.be/en/poster/)</sup> |
| 发表 | 《关于位置几何问题的解法》，载《彼得堡帝国科学院评论》第8卷（1736年），第128–140页。<sup>[2](https://www.cantab.net/users/michael.behrend/repubs/maze_maths/pages/euler_en.html)</sup> |
| 日期 | 1735年8月26日提交圣彼得堡科学院；该卷印刷本迟至1741年才问世。<sup>[5](https://statmath.wu.ac.at/~boehm/topics.pdf)</sup><sup> • </sup><sup>[6](https://scholarlycommons.pacific.edu/euler-works/53/)</sup> |
| 影响 | 被视为图论的开端，也是拓扑学早期文献。<sup>[7](https://www.sciencedirect.com/topics/mathematics/konigsberg)</sup> |
| 今日城市 | 柯尼斯堡现为俄罗斯的加里宁格勒。<sup>[8](https://assets.press.princeton.edu/chapters/s8114.pdf)</sup> |

## 问题

柯尼斯堡位于普雷格尔河（Pregel）两岸，这条河环绕着一座名叫克奈普霍夫（der Kneiphof）的岛屿。七座桥将岛屿与河岸连接起来，欧拉将它们依次标记为a到g。<sup>[2](https://www.cantab.net/users/michael.behrend/repubs/maze_maths/pages/euler_en.html)</sup> 居民们提出的问题是：能否安排一次散步，走过每一座桥，且每座桥只走一次、不多走一次。欧拉记载道，有人否认这可行，有人表示怀疑，但没有人断言它可行。<sup>[2](https://www.cantab.net/users/michael.behrend/repubs/maze_maths/pages/euler_en.html)</sup>

欧拉大概是通过但泽（Danzig）市长卡尔·莱昂哈德·戈特利布·埃勒（Carl Leonhard Gottlieb Ehler）的来信首次得知这个问题的，其中一封写于1736年3月9日。<sup>[9](https://philsci-archive.pitt.edu/11094/1/raez_euler.pdf)</sup> 在1736年3月13日致意大利数学家乔瓦尼·马里诺尼（Giovanni Marinoni）的信中，欧拉写道，这个问题看似寻常，却值得关注，因为无论是几何学、代数学，还是计数之术，都不足以解决它。<sup>[5](https://statmath.wu.ac.at/~boehm/topics.pdf)</sup>

## 欧拉的解法

欧拉的关键一步是抽象化。桥的长度、陆地的面积、地图的地理方位，都不影响问题本身；重要的只是哪块陆地连着哪块陆地，以及连了几次。把每块陆地替换成一个点（称为顶点），把每座桥替换成一条线（称为边），地图就被化简为一个含有四个顶点、七条边的图。<sup>[10](https://www.scientificamerican.com/article/how-the-seven-bridges-of-koenigsberg-spawned-new-math/)</sup><sup> • </sup><sup>[3](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)</sup>

论证的关键在于顶点的度，即与该顶点相连的边数。在行走途中经过的任何顶点，都必须从一条边进入、从另一条边离开，因此每经过一次就消耗两条边；除了起点和终点可能例外，其余每个顶点都必须具有偶度。由于至多只有两个顶点可以例外，一个连通图若能用每条边恰好一次地走遍，就至多只能有两个奇度顶点。<sup>[10](https://www.scientificamerican.com/article/how-the-seven-bridges-of-koenigsberg-spawned-new-math/)</sup><sup> • </sup><sup>[11](https://webserv.jcu.edu/math/Vignettes/bridges.htm)</sup>

在柯尼斯堡的图中，四个顶点都是奇度顶点，因此两种形式的走法都不可能。回到起点的闭合走法，现在称为欧拉回路（Eulerian circuit），要求每个顶点都是偶度。不闭合的走法，即欧拉路径（Eulerian path），要求恰好有两个奇度顶点，它们就是路径的起点和终点。由于有四个奇度顶点，两者都不存在。<sup>[3](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)</sup><sup> • </sup><sup>[4](https://be-oi.be/en/poster/)</sup>

欧拉也否定了另一种显而易见的做法——枚举所有可能的走法。他称这种做法艰难而繁琐，对于桥梁多得多的城市根本不可行，转而寻求一个适用于任意河流与桥梁布局的普遍判据。<sup>[2](https://www.cantab.net/users/michael.behrend/repubs/maze_maths/pages/euler_en.html)</sup>

## 完成定理

欧拉的论证只确立了必要条件。其逆命题——一个所有顶点皆为偶度的连通图确实存在欧拉回路——由希尔霍尔策（Hierholzer）于1873年证明，距欧拉的论文已过了一个多世纪。希尔霍尔策还给出了一种构造性步骤：将边划分成若干个互不重复使用边的回路，然后在回路共享顶点处将它们合并。<sup>[3](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)</sup>

该判据还回答了修补问题。在柯尼斯堡添上两座位置合适的桥，就能将四个奇度顶点两两配对，使图成为欧拉图；仅添一座新桥是不够的，因为它只改变两个顶点的奇偶性。相应地，仅添一条边也无法造成欧拉路径，因为给路径添一条边就会产生一个回路。<sup>[3](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)</sup>

## 发表经过

欧拉论文的定年涉及一个已知的混淆。圣彼得堡科学院（St. Petersburg Academy）的记录指出，欧拉在1735年8月26日的一次讲演中提出了柯尼斯堡问题及其解法。论文刊于《评论》第8卷，该卷标明的年份是1736年，但这一卷实际上直到1741年才付印。<sup>[5](https://statmath.wu.ac.at/~boehm/topics.pdf)</sup><sup> • </sup><sup>[6](https://scholarlycommons.pacific.edu/euler-works/53/)</sup> 该文被编为埃内斯特伦编号53，常被引用为拓扑学与图论两个领域最早的论文。<sup>[6](https://scholarlycommons.pacific.edu/euler-works/53/)</sup>

## 影响与应用

欧拉的证明通常被视为图论的第一定理，而图论后来成为描述网络的主要数学语言。<sup>[8](https://assets.press.princeton.edu/chapters/s8114.pdf)</sup> 这篇论文也为拓扑学播下了种子——拓扑学研究的是在形变下保持不变的性质——因为它处理的是位置与连接，而完全忽略了距离与角度。<sup>[10](https://www.scientificamerican.com/article/how-the-seven-bridges-of-koenigsberg-spawned-new-math/)</sup><sup> • </sup><sup>[7](https://www.sciencedirect.com/topics/mathematics/konigsberg)</sup>

欧拉判据在实践中有不少后裔。在运筹学中，欧拉路由是制定最优扫街作业计划的基础，例如博丁（Bodin）和库尔什（Kursh）为纽约市卫生局（New York City Department of Sanitation）设计的那些计划，不过实际部署时会遇到停车规定、规定工作时间之类的复杂情况，需要在欧拉判据之外借助其他方法。<sup>[12](https://link.springer.com/article/10.1007/s10670-022-00558-2)</sup> 在遗传学中，从短测序片段重建染色体被表述为在德布鲁因图（de Bruijn graph）中寻找欧拉路径的问题，这一框架由佩夫兹纳（Pevzner）、唐（Tang）和沃特曼（Waterman）于2001年提出。<sup>[13](https://unseel.com/mathematics/konigsberg-bridges)</sup>

一个听起来密切相关的题目，表现却大不相同。寻找一条恰好访问每个顶点一次的路径，即哈密顿路径问题（Hamiltonian path problem），目前没有已知的通用高效判据，而且被认为在计算上难以处理。这与欧拉路径那条简单的度数判据形成鲜明对比。<sup>[10](https://www.scientificamerican.com/article/how-the-seven-bridges-of-koenigsberg-spawned-new-math/)</sup>

## References

1. [The Seven Bridges Problem, Königsberger Bridges Institute, Eulerus Universität Königsberg](https://eulerus.university/research/)
2. [Leonhard Euler, "Solution of a problem in the geometry of position" (English translation of E53), Maze Maths](https://www.cantab.net/users/michael.behrend/repubs/maze_maths/pages/euler_en.html)
3. [A. Perucca et al., The Seven Bridges of Königsberg, University of Luxembourg](https://orbilu.uni.lu/bitstream/10993/41432/1/Perucca-7BridgesProblem.pdf)
4. [The Seven Bridges of Königsberg, beOI poster explained](https://be-oi.be/en/poster/)
5. [S. Böhm, The Seven Bridges of Königsberg, lecture notes, WU Wien](https://statmath.wu.ac.at/~boehm/topics.pdf)
6. ["Solutio problematis ad geometriam situs pertinentis" by Leonhard Euler, E53, University of the Pacific](https://scholarlycommons.pacific.edu/euler-works/53/)
7. [Königsberg, an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/mathematics/konigsberg)
8. [Networks: An Introduction, chapter 1, Princeton University Press](https://assets.press.princeton.edu/chapters/s8114.pdf)
9. [Räz, Mathematical Explanations in Euler's Königsberg paper, PhilSci Archive](https://philsci-archive.pitt.edu/11094/1/raez_euler.pdf)
10. [Jack Murtagh, How the seven bridges of Königsberg spawned new math, Scientific American (2024)](https://www.scientificamerican.com/article/how-the-seven-bridges-of-koenigsberg-spawned-new-math/)
11. [Graph Theory and the Bridges of Königsberg, John Carroll University](https://webserv.jcu.edu/math/Vignettes/bridges.htm)
12. [Eulerian Routing in Practice, Erkenntnis, Springer](https://link.springer.com/article/10.1007/s10670-022-00558-2)
13. [The Seven Bridges of Königsberg: Four Odd Vertices Mean No Walk Crosses All Seven Once, Unseel](https://unseel.com/mathematics/konigsberg-bridges)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › History, publications, and organizations of discrete mathematics › History of graph theory

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/seven-bridges-of-konigsberg

English original: https://www.edgepedia.org/seven-bridges-of-konigsberg
