# 图论

**图论**是数学的一个分支，研究的是图——由称为顶点（或节点）的点，以及连接成对顶点的称为边的线所构成的结构，用于对对象之间的两两关系进行建模。其起源通常被追溯到 1735 年，当时莱昂哈德·欧拉（Leonhard Euler）通过将每块陆地表示为一个点、每座桥表示为一条线，分析了柯尼斯堡（Königsberg）七桥问题，从而引入了图的概念以及如今所称的欧拉图。<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup><sup> • </sup><sup>[2](https://discrete.openmathbooks.org/preview/ch_graphtheory.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 图 \( G \) 由顶点（点）和边（连接其中某个子集的线）组成；仅由顶点和边指定、不依赖于任何画法的图，称为抽象图<sup>[3](https://mathworld.wolfram.com/Graph.html)</sup> |
| 起源 | 欧拉 1735 年对柯尼斯堡七桥问题的解答，其中这座普鲁士城市的四块陆地和七座桥被化归为顶点和边<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup><sup> • </sup><sup>[4](https://www.whitman.edu/mathematics/cgt_online/book/section05.02.html)</sup> |
| 欧拉定理 | 有限图含有欧拉回路（恰好经过每条边一次的闭途径）当且仅当它连通且没有奇度顶点；它含有欧拉路径当且仅当它连通且至多有两个奇度顶点<sup>[5](https://www-users.cse.umn.edu/~reiner/Classes/Konigsberg.pdf)</sup> |
| 第一部教科书 | 德内斯·柯尼希（Dénes König）的《有限图与无限图理论》（*Theorie der endlichen und unendlichen Graphen*，托伊布纳出版社，莱比锡，1936 年），此后“图”这一术语开始频繁使用<sup>[6](https://cs.bme.hu/fcs/graphtheory.pdf)</sup><sup> • </sup><sup>[7](https://encyclopediaofmath.org/wiki/Graph_theory)</sup> |
| 着色复杂性 | 判定给定图对于 k > 2 是否 k 可染是 NP 完全的；每个平面图都是 4 可染的<sup>[8](https://www.cs.cornell.edu/courses/cs3110/2012sp/recitations/rec21-graphs/rec21.html)</sup><sup> • </sup><sup>[9](https://www.cs.cornell.edu/courses/cs2800/2017sp/lectures/lec37-coloring.html)</sup> |
| 奇偶性事实 | 每个简单图都有偶数个奇度顶点，即与奇数条边关联的顶点<sup>[3](https://mathworld.wolfram.com/Graph.html)</sup> |
| 应用 | 通信网络设计、航线规划、GPS 最短路径、电路设计、万维网建模，以及生物与化学网络分析<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup><sup> • </sup><sup>[10](https://www.mdpi.com/2079-3197/11/10/188)</sup> |

## 基本定义

图 \( G \) 是一个数学结构，由一组顶点和一组连接它们的边组成。在柯尼斯堡的表示中，点 \( P \)、\( Q \)、\( R \)、\( S \) 是顶点，线是边，整幅图就是一个图。<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup> 若干区分进一步精化了这一基本概念。简单图在任意两个顶点之间至多允许一条边；顶点之间有多条边的图称为多重图，欧拉为柯尼斯堡所画的正是这种图，因为有两座桥连接同一对陆地。<sup>[3](https://mathworld.wolfram.com/Graph.html)</sup><sup> • </sup><sup>[11](https://math.libretexts.org/Bookshelves/Applied_Mathematics/Contemporary_Mathematics_%28OpenStax%29/12%253A_Graph_Theory/12.05%253A_Euler_Circuits)</sup> 边也可以带有方向：有向图（digraph）将每条边替换为有向边，而没有对称有向边对的有向图称为定向图。<sup>[12](https://mathworld.wolfram.com/DirectedGraph.html)</sup> 若一个图或有向图带有一个为每条边赋予正实数的函数，则称为网络。<sup>[3](https://mathworld.wolfram.com/Graph.html)</sup>

若对每一对顶点 \( u, v \) 都存在从 \( u \) 到 \( v \) 的途径，则称图是连通的；不连通的图会分成若干连通分量，每个分量都是连通的。<sup>[5](https://www-users.cse.umn.edu/~reiner/Classes/Konigsberg.pdf)</sup> 途径是顶点与边的序列 \( v_1, e_1, v_2, e_2, \ldots, v_k, e_k, v_{k+1} \)，其中 \( e_i \) 的端点为 \( v_i \) 和 \( v_{i+1} \)。<sup>[4](https://www.whitman.edu/mathematics/cgt_online/book/section05.02.html)</sup>

## 柯尼斯堡七桥问题与欧拉回路

柯尼斯堡是 18 世纪的一座普鲁士城市，普雷格尔河（Pregel）流经其间，城市建于两岸和两座岛上，七座桥连接着城市的四个部分。居民们问：能否走遍全城，每座桥恰好经过一次，并回到出发点？<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup>

欧拉的解答立足于统计每块陆地上的桥数。用他自己的表述：若有超过两块陆地的桥数为奇数，则这样的行程不可能；若恰有两块陆地的桥数为奇数，则可以从其中任一块出发完成行程；若没有陆地的桥数为奇数，则可以从任意一块陆地出发。<sup>[5](https://www-users.cse.umn.edu/~reiner/Classes/Konigsberg.pdf)</sup> 用当代语言表述，有限图 \( G \) 恰在连通且每个顶点度数均为偶数时含有欧拉回路，恰在连通且至多有两个奇度顶点时含有欧拉路径。<sup>[5](https://www-users.cse.umn.edu/~reiner/Classes/Konigsberg.pdf)</sup> 一个支撑性的事实是：任何简单图总有偶数个奇度顶点。<sup>[3](https://mathworld.wolfram.com/Graph.html)</sup> 柯尼斯堡不满足条件，因为它的四块陆地各自都与奇数座桥相接。

## 早期发展

欧拉之后，这一领域的早期成长来自物理问题。基尔霍夫（Kirchhoff）关于电路中电流与电压的完整方程组，相当于用带有骨架树的图来表示电路，由此得到线性无关的回路系统；凯莱（Cayley）则研究了称为树的分析形式。<sup>[7](https://encyclopediaofmath.org/wiki/Graph_theory)</sup> 哈密顿（Hamilton）与欧拉一样，研究了“走遍整个图”的原理，一个关注走遍每个顶点，另一个关注走遍每条边。<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup>

作为一门学科，第一次系统性的处理是德内斯·柯尼希 1936 年的著作《有限图与无限图理论》，这是第一部关于图论的专著。<sup>[6](https://cs.bme.hu/fcs/graphtheory.pdf)</sup><sup> • </sup><sup>[13](https://citeseerx.ist.psu.edu/document?doi=8ab62e6f425d50b422d2127e7dda0db4cd99d816&repid=rep1&type=pdf)</sup> 关于连通性、平面性和图对称性的最早成果出现于 20 世纪 20 年代和 30 年代；随着控制论和计算的发展，20 世纪 40 年代末至 50 年代初研究范围大幅扩展。电子计算机使解决涉及大量计算的实际问题成为可能，人们也为极值问题发展了方法，例如构造通过网络的最大流。研究还表明，对于树和平面图等特定类别的图，某些问题比在任意图上更易求解。<sup>[7](https://encyclopediaofmath.org/wiki/Graph_theory)</sup>

## 着色与计算复杂性

图着色要求为顶点分配颜色，使得相邻顶点获得不同的颜色。

平面图——可以在平面中画出且边不交叉的图——具有很强的着色保证。每个平面图都是 4 可染的，这一结果早已以较弱的形式为人所知：由五色定理，任何平面图都是 5 可染的；而六色定理——每个平面图的色数不超过 6——有一个简短的归纳证明。<sup>[9](https://www.cs.cornell.edu/courses/cs2800/2017sp/lectures/lec37-coloring.html)</sup><sup> • </sup><sup>[8](https://www.cs.cornell.edu/courses/cs3110/2012sp/recitations/rec21-graphs/rec21.html)</sup> 诸如二分图、平面图、有界树宽图和完美图等特殊图类，对于边着色、最大匹配、顶点覆盖和最大割等问题，都有专门的算法方法。<sup>[14](https://www2.informatik.hu-berlin.de/logik/lehre/WS11-12/Para/index.html)</sup>

## 应用

由于图可以对任何两两关系集合进行建模，这一理论服务于许多领域。标准应用包括通信网络设计、航线规划、用 GPS 求两点间最短路径、电路设计以及万维网建模。<sup>[1](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup>

在生物学和医学中，图用于表示蛋白质相互作用网络、基因调控网络和代谢通路，这些是具有小世界和无标度性质的大型复杂网络。基于聚类系数、模块度和中心性等图论参数的分析方法，连同图聚类、网络模体搜索和网络比对算法，被用于从网络结构中推断功能和进化关系。<sup>[10](https://www.mdpi.com/2079-3197/11/10/188)</sup> 在化学中，图论概念早于量子力学，化学结构的图形度量可追溯到 20 世纪 70 年代；近年来，公共数据存储库和高通量测定使大规模化学网络（如蛋白质-蛋白质相互作用网络）的网络分析成为可能，用于构效关系建模和药物设计。<sup>[15](https://pubmed.ncbi.nlm.nih.gov/23157237/)</sup> 在公共卫生领域，网络分析植根于数学、统计学、社会学、生物学和计算机科学，已被用于研究疾病传播、创新扩散、社会支持和卫生系统结构。<sup>[16](https://www.annualreviews.org/content/journals/10.1146/annurev.publhealth.28.021406.144132)</sup>

## References

1. [An Introduction to Graph Theory, Computing – Maths Summer School, Glasgow Caledonian University](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)
2. [Graph Theory, Discrete Mathematics, Open Math Books](https://discrete.openmathbooks.org/preview/ch_graphtheory.html)
3. [Graph – from Wolfram MathWorld](https://mathworld.wolfram.com/Graph.html)
4. [Euler Circuits and Walks, Whitman College, A First Course in Complex Analysis... / Combinatorics online](https://www.whitman.edu/mathematics/cgt_online/book/section05.02.html)
5. [Early Writings on Graph Theory: Euler and the Königsberg Bridges Problem](https://www-users.cse.umn.edu/~reiner/Classes/Konigsberg.pdf)
6. [Graph Theory course notes, Budapest University of Technology](https://cs.bme.hu/fcs/graphtheory.pdf)
7. [Graph theory – Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Graph_theory)
8. [Graph algorithms, CS 3110, Cornell University](https://www.cs.cornell.edu/courses/cs3110/2012sp/recitations/rec21-graphs/rec21.html)
9. [Graph coloring, CS 2800, Cornell University](https://www.cs.cornell.edu/courses/cs2800/2017sp/lectures/lec37-coloring.html)
10. [Graph-Theoretical Analysis of Biological Networks: A Survey, MDPI Algorithms](https://www.mdpi.com/2079-3197/11/10/188)
11. [Euler Circuits – Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Applied_Mathematics/Contemporary_Mathematics_%28OpenStax%29/12%253A_Graph_Theory/12.05%253A_Euler_Circuits)
12. [Directed Graph – from Wolfram MathWorld](https://mathworld.wolfram.com/DirectedGraph.html)
13. [Journal of Physical Sciences, Vol. 10, 2006, 188–200](https://citeseerx.ist.psu.edu/document?doi=8ab62e6f425d50b422d2127e7dda0db4cd99d816&repid=rep1&type=pdf)
14. [Algorithmic Graph Theory, Humboldt-Universität zu Berlin](https://www2.informatik.hu-berlin.de/logik/lehre/WS11-12/Para/index.html)
15. [Graphs and networks in chemical and biological informatics: past, present and future, Future Medicinal Chemistry](https://pubmed.ncbi.nlm.nih.gov/23157237/)
16. [Network Analysis in Public Health: History, Methods, and Applications, Annual Review of Public Health](https://www.annualreviews.org/content/journals/10.1146/annurev.publhealth.28.021406.144132)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Graph theory overview and basic objects

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/graph-theory

English original: https://www.edgepedia.org/graph-theory
