# 平面图

**平面图**（planar graph）是可以在平面上画出来而边不相交的图：共享端点的边只在该端点处相交，不共享端点的边没有任何公共点。这样的画法称为平面嵌入，以这种方式画出的图有时也称为平面图或平面地图。<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/15%3A_Planar_Graphs/15.01%3A_Planar_Graphs)</sup><sup> • </sup><sup>[2](https://ncatlab.org/nlab/show/planar%2Bgraph)</sup> 平面性是抽象图的性质，而不是某一特定画法的性质：一个看起来纠缠不清的图，如果能通过重新绘制避免所有交叉，它仍然是平面图。<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 如果一个图可以在平面上画出，且除共享端点外没有边交叉，则它是平面图<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/15%3A_Planar_Graphs/15.01%3A_Planar_Graphs)</sup> |
| 欧拉公式 | 对于有 \( v \) 个顶点、\( e \) 条边和 \( f \) 个面的连通平面图，\( v - e + f = 2 \)<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup> |
| 边数上界 | 一个有 \( v \geq 3 \) 个顶点的简单平面图最多有 \( 3v - 6 \) 条边；边数更多则必然非平面<sup>[4](https://www.math.emory.edu/~rg/book/chap6.pdf)</sup> |
| 禁止子图 | 一个图是平面图当且仅当它不包含与 \( K_5 \) 或 \( K_{3,3} \) 同胚的子图（库拉托夫斯基，1930）<sup>[4](https://www.math.emory.edu/~rg/book/chap6.pdf)</sup><sup> • </sup><sup>[5](https://www.impan.pl/en/publishing-house/journals-and-series/fundamenta-mathematicae/all/en/publishing-house/journals-and-series/fundamenta-mathematicae/all/15/0/92829/sur-le-probleme-des-courbes-gauches-en-topologie)</sup> |
| 禁止子式 | 一个图是平面图当且仅当它既不以 \( K_5 \) 也不以 \( K_{3,3} \) 为子式（瓦格纳，1937）<sup>[6](https://www.math.tugraz.at/~cela/Vorlesungen/AlgGrTheo20/Planar_graphs_2_Slides_H.pdf)</sup> |
| 识别 | 平面性可以在线性时间内检测并生成平面嵌入；第一个这样的算法由霍普克罗夫特和塔尔扬（1974）给出<sup>[7](https://doi.org/10.1145/321850.321852)</sup> |
| 着色 | 每个平面图都是4-可着色的（四色定理）<sup>[8](https://citeseerx.ist.psu.edu/document?doi=9f1499a112ee0f5d4c50c223524bbe39a71e80cb&repid=rep1&type=pdf)</sup> |

## 定义与嵌入

形式化的陈述是拓扑的。当一个图允许在 \( \mathbb{R}^2 \) 中画出来，使得不同的边除非共享一个端点否则永不相交，而且即使共享端点也只在该顶点处相交时，它就是平面图。<sup>[1](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/15%3A_Planar_Graphs/15.01%3A_Planar_Graphs)</sup> 当一个平面图被无交叉地画出时，它的边和顶点将平面划分为称为面的区域，无界的外部区域也算作一个面。面的数量对于该图的每一种无交叉画法都是相同的，因此它是图本身的性质。<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup>

无交叉的画法就是平面嵌入。用组合的语言来说，连通图的胞腔嵌入由它的旋转系统决定，即每个顶点周围边的循环顺序，这使得嵌入成为纯粹的组合对象，适合计算。<sup>[9](https://www.sfu.ca/~mohar/Book/Ch4.html)</sup> 平面性也推广到其他曲面：一个不能在平面上画出的图可能可以嵌入环面或更高亏格的曲面，拓扑图论研究一个图可以嵌入哪些曲面。<sup>[10](https://www.cambridge.org/core/books/abs/topics-in-topological-graph-theory/embedding-graphs-on-surfaces/0B544DF28863D3E9A1D0CDE255DFB072)</sup>

## 欧拉公式与边数上界

对于任何有 \( v \) 个顶点、\( e \) 条边和 \( f \) 个面的连通平面图，欧拉公式为

\[ v - e + f = 2. \]

该公式起源于多面体：欧拉在1750年给克里斯蒂安·哥德巴赫的一封信中描述了它，并于1752年发表，附有一个对三角剖分多面体的归纳证明，后来的作者发现该证明有缺陷；勒让德在1794年用球面角给出了完整证明。<sup>[11](https://ics.uci.edu/~eppstein/junkyard/euler/)</sup> 每个凸多面体都可以投影到平面上而不产生边交叉，因此多面体公式和平面图公式是同一个命题。<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup>

欧拉公式给出了一个实用的边数上界。在简单平面图中，每个面至少由3条边围成，每条边邻接2个面，所以 \( 3f \leq 2e \)；将其与 \( v - e + f = 2 \) 结合，得到 \( v \geq 3 \) 时 \( e \leq 3v - 6 \)。<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup><sup> • </sup><sup>[4](https://www.math.emory.edu/~rg/book/chap6.pdf)</sup> 如果一个图的边数超过 \( 3v - 6 \)，它必然是非平面的，这是平面性算法中的标准初步检验之一。<sup>[4](https://www.math.emory.edu/~rg/book/chap6.pdf)</sup> 该上界可按围长推广：如果 \( g \) 是最短环的长度，则 \( g \cdot f \leq 2e \)，因此没有三角形的二分平面图满足 \( e \leq 2v - 4 \)。<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup>

## 两个最小的非平面图

5个顶点的完全图 \( K_5 \) 有10条边，超过 \( 3 \cdot 5 - 6 = 9 \)，因此它不是平面图。完全二分图 \( K_{3,3} \) 有6个顶点和9条边；由于它是二分图，没有3边环，二分图上界 \( 4f \leq 2e \) 结合欧拉公式给出 \( 20 \leq 18 \)，矛盾。\( K_{3,3} \) 是三户人家问题的图：三座房子不能各自连接到三个公共设施而不让线路交叉。<sup>[3](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)</sup>

**库拉托夫斯基定理。** 20世纪20年代末，几位数学家接近了平面图的刻画，证明于1930年由卡齐米日·库拉托夫斯基发表在《数学基础》（第15卷，第271–283页，标题为“论拓扑学中的空间曲线问题”）上。该结果被称为库拉托夫斯基定理，被描述为图论中被引用最多的结果。<sup>[5](https://www.impan.pl/en/publishing-house/journals-and-series/fundamenta-mathematicae/all/en/publishing-house/journals-and-series/fundamenta-mathematicae/all/15/0/92829/sur-le-probleme-des-courbes-gauches-en-topologie)</sup><sup> • </sup><sup>[12](https://www.sciencedirect.com/science/article/pii/031508608590045X)</sup> 它指出，一个图是平面图当且仅当它不包含与 \( K_5 \) 或 \( K_{3,3} \) 同胚的子图，其中如果一个图是另一个图或其细分（通过用经过新顶点的路径替换边得到），则称前者与后者同胚。<sup>[4](https://www.math.emory.edu/~rg/book/chap6.pdf)</sup> 细分一条边不改变画法能否避免交叉，这就是为什么这两个图是仅有的基本障碍。<sup>[4](https://www.math.emory.edu/~rg/book/chap6.pdf)</sup>

**瓦格纳定理。** 1937年，克劳斯·瓦格纳证明了用子式的类似刻画：一个图是平面图当且仅当它既不以 \( K_5 \) 也不以 \( K_{3,3} \) 为子式，其中子式通过删除边和顶点以及收缩边得到。<sup>[6](https://www.math.tugraz.at/~cela/Vorlesungen/AlgGrTheo20/Planar_graphs_2_Slides_H.pdf)</sup><sup> • </sup><sup>[13](https://www.cs.uleth.ca/~morris/Combinatorics/html/sect_planar-EulerFla.html)</sup> 瓦格纳定理成为后来由尼尔·罗伯逊和保罗·西摩发展的图子式框架的第一个例子，在该框架中许多子式封闭族由有限障碍集刻画。<sup>[13](https://www.cs.uleth.ca/~morris/Combinatorics/html/sect_planar-EulerFla.html)</sup>

## 平面性测试算法

尽管刻画很困难，判定平面性在计算上是容易的。约翰·霍普克罗夫特和罗伯特·塔尔扬于1974年在《ACM杂志》上发表了一个算法，判定任意图是否可以嵌入平面，使用深度优先搜索，时间和空间复杂度均为 \( O(V) \)，其中 \( V \) 是顶点数；一个ALGOL实现测试了多达900个顶点的图，用时不到12秒。<sup>[7](https://doi.org/10.1145/321850.321852)</sup> 他们的方法是奥斯拉纳德和帕特提出、戈德斯坦表述的方法的迭代版本。<sup>[7](https://doi.org/10.1145/321850.321852)</sup>

后来的线性时间算法简化了方法。布斯和吕克设计了一种基于PQ树的线性时间测试，施和海苏开发了一种仅基于深度优先搜索树的非常简单的线性时间算法，引入了PC树，可以看作实际平面嵌入的抽象子嵌入；他们的算法同时识别平面性并构造嵌入，当图不是平面图时产生一个显式的库拉托夫斯基子图。<sup>[14](https://www.sciencedirect.com/science/article/pii/S0304397598001200)</sup> 博耶和米尔沃尔德给出了一个快速且简单的基于DFS的测试和嵌入算法，其阶段包括一个称为“向上走”的步骤。<sup>[15](https://iris.uniroma3.it/handle/11590/167680)</sup> 2024年对布斯–吕克、博耶–米尔沃尔德和豪普勒–塔尔扬算法实现的比较发现，所有实现都提供线性运行时间，豪普勒–塔尔扬总体最快，不过布斯–吕克在网格图上更快。<sup>[16](https://www.fim.uni-passau.de/fileadmin/dokumente/fakultaeten/fim/lehrstuhl/rutter/abschlussarbeiten/2024-BA-Huber-Evaluation_and_Comparison_of_Planarity_Algorithms.pdf)</sup>

平面性也使其他问题更容易。测试三连通平面图（在球面上有唯一嵌入）的同构，用温伯格方法需要 \( O(|V|^2) \) 时间；霍普克罗夫特和塔尔扬将其推广到任意平面图，时间为 \( O(|V| \log |V|) \)，霍普克罗夫特和黄在1974年将界改进到 \( O(|V|) \)。<sup>[17](https://doi.org/10.1145/800119.803896)</sup>

## 相关结果与应用

平面图支持强结构定理。每个平面图都是4-可着色的，即四色定理；每个4-连通平面图都是哈密顿的，这是图特的一个定理。<sup>[8](https://citeseerx.ist.psu.edu/document?doi=9f1499a112ee0f5d4c50c223524bbe39a71e80cb&repid=rep1&type=pdf)</sup> 边数上界 \( e \leq 3v - 6 \) 也适用于边极大的无 \( K_5 \) 子式图，瓦格纳将这类图刻画为极大平面图与图 \( V_8 \) 的副本的粘贴。<sup>[18](https://doi.org/10.1016%2FS0012-365X%2803%2900199-7)</sup>

一旦引入交叉，计算图景就急剧变化。在线性时间内判定一个图是否可以无任何交叉地嵌入平面是一个可处理的问题，而找到一个非平面图的最少交叉画法是NP完全的；因此，精确方法只适用于小图，实际方法主要依赖启发式。<sup>[19](https://technav.ieee.org/topic/graph-drawing/)</sup> 类似地，确定一个图可以嵌入的曲面的最小亏格是NP完全的，由卡斯滕·托马森证明。<sup>[9](https://www.sfu.ca/~mohar/Book/Ch4.html)</sup> 关于具有受限交叉模式的非平面图绘制的研究是一个活跃领域，称为超越平面性的图绘制。<sup>[20](https://arxiv.org/abs/1804.07257)</sup>

应用直接利用平面性。在电路和芯片设计中，平面或近平面布局降低布线复杂度，因为两根导线的交叉增加了所需的层数；平面图的正交绘制用作建筑和超大规模集成电路设计中的平面布置图。<sup>[19](https://technav.ieee.org/topic/graph-drawing/)</sup><sup> • </sup><sup>[21](https://www.tandfonline.com/doi/full/10.1080/09728600.2023.2218459)</sup> 街道网络也通过平面性来研究：一个有立交的网络在其现实世界嵌入中可能在空间上非平面，但作为抽象图仍然是形式平面的，因为在不改变连接的情况下重新绘制节点和边可以消除所有交叉。<sup>[22](https://geoffboeing.com/2018/11/planar-models-street-networks/)</sup>

## References

1. [Planar Graphs, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/15%3A_Planar_Graphs/15.01%3A_Planar_Graphs)
2. [Planar graph, nLab](https://ncatlab.org/nlab/show/planar%2Bgraph)
3. [Planar Graphs, Discrete Mathematics: Open Math Books](https://discrete.openmathbooks.org/dmoi2/sec_planar.html)
4. [Chapter 6: Planarity, R. Guy, Emory University lecture text](https://www.math.emory.edu/~rg/book/chap6.pdf)
5. [Casimir Kuratowski (1930). Sur le problème des courbes gauches en Topologie. Fundamenta Mathematicae 15, 271–283.](https://www.impan.pl/en/publishing-house/journals-and-series/fundamenta-mathematicae/all/en/publishing-house/journals-and-series/fundamenta-mathematicae/all/15/0/92829/sur-le-probleme-des-courbes-gauches-en-topologie)
6. [Planar graphs: the theorem of Wagner, TU Graz lecture slides](https://www.math.tugraz.at/~cela/Vorlesungen/AlgGrTheo20/Planar_graphs_2_Slides_H.pdf)
7. [John Hopcroft, Robert Tarjan (1974). Efficient Planarity Testing. Journal of the ACM 21(4), 549–568.](https://doi.org/10.1145/321850.321852)
8. [Graduate Textbook in Mathematics, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=9f1499a112ee0f5d4c50c223524bbe39a71e80cb&repid=rep1&type=pdf)
9. [Bojan Mohar, Carsten Thomassen. Graphs on Surfaces, Chapter 4: Embeddings combinatorially](https://www.sfu.ca/~mohar/Book/Ch4.html)
10. [Jonathan L. Gross, Thomas W. Tucker. Embedding graphs on surfaces, in Topics in Topological Graph Theory, Cambridge University Press](https://www.cambridge.org/core/books/abs/topics-in-topological-graph-theory/embedding-graphs-on-surfaces/0B544DF28863D3E9A1D0CDE255DFB072)
11. [Euler's Formula, David Eppstein, Geometry Junkyard](https://ics.uci.edu/~eppstein/junkyard/euler/)
12. [John W. Kennedy, Louis V. Quintas, Maciej M. Sysło (1985). The theorem on planar graphs. Historia Mathematica 12(4), 356–368.](https://www.sciencedirect.com/science/article/pii/031508608590045X)
13. [Euler's Formula, University of Lethbridge Combinatorics notes](https://www.cs.uleth.ca/~morris/Combinatorics/html/sect_planar-EulerFla.html)
14. [Shih, Hsu (1999). A new planarity test. Theoretical Computer Science 223(1–2), 179–191.](https://www.sciencedirect.com/science/article/pii/S0304397598001200)
15. [Boyer, Cortese, Patrignani, Di Battista (2004). Stop Minding Your P's and Q's: Implementing a Fast and Simple DFS-based Planarity Testing and Embedding Algorithm. Graph Drawing 2003.](https://iris.uniroma3.it/handle/11590/167680)
16. [Huber (2024). Evaluation and Comparison of Planarity Algorithms, University of Passau bachelor thesis](https://www.fim.uni-passau.de/fileadmin/dokumente/fakultaeten/fim/lehrstuhl/rutter/abschlussarbeiten/2024-BA-Huber-Evaluation_and_Comparison_of_Planarity_Algorithms.pdf)
17. [Hopcroft, Wong (1974). Linear time algorithm for isomorphism of planar graphs. STOC '74, 172–184.](https://doi.org/10.1145/800119.803896)
18. [Tree-width, clique-minors, and eigenvalues, Discrete Mathematics](https://doi.org/10.1016%2FS0012-365X%2803%2900199-7)
19. [Graph drawing, IEEE Technology Navigator](https://technav.ieee.org/topic/graph-drawing/)
20. [Didimo, Liotta, Montecchiani (2018). A Survey on Graph Drawing Beyond Planarity. arXiv:1804.07257](https://arxiv.org/abs/1804.07257)
21. [An annotated review on graph drawing and its applications, Taylor & Francis](https://www.tandfonline.com/doi/full/10.1080/09728600.2023.2218459)
22. [Geoff Boeing (2018). Planar Models of Street Networks](https://geoffboeing.com/2018/11/planar-models-street-networks/)

---
*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 subfields and named results › Topological graph theory

Copyright 2026 Edgepedia

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

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

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