← 学习库 Discrete Mathematics (Levin) · 中英对照 目录

4.2 Planar Graphs 平面图

本页译自 LibreTexts · Discrete Mathematics (Levin) 第 4.2 章。公式经 MathJax 渲染,自定义宏已注入。

Investigate! 探究!

When a connected graph can be drawn without any edges crossing, it is called planar. When a planar graph is drawn in this way, it divides the plane into regions called faces.

若一个连通图能够画成任意两条边都不相交的形式,则称它为平面图(planar)。当一个平面图以这种方式画出时,它把平面分成若干区域,每个区域称为一个面(face)
  1. Draw, if possible, two different planar graphs with the same number of vertices, edges, and faces.
  2. Draw, if possible, two different planar graphs with the same number of vertices and edges, but a different number of faces.
  1. 若可能,画出两个不同的平面图,它们的顶点数、边数与面数都相同。
  2. 若可能,画出两个不同的平面图,它们的顶点数与边数相同,但面数不同。

When is it possible to draw a graph so that none of the edges cross? If this is possible, we say the graph is planar (since you can draw it on the plane).

什么时候能把一个图画得没有任何两条边相交?如果这确实可行,就称该图是平面图(因为它可以画在平面上)。

Notice that the definition of planar includes the phrase “it is possible to.” This means that even if a graph does not look like it is planar, it still might be. Perhaps you can redraw it in a way in which no edges cross. For example, this is a planar graph:

注意,平面图的定义中含有「可能」二字。这意味着即使一个图看起来不像平面图,它仍可能是平面图——或许你能把它重画成没有边相交的样子。例如,下图就是一个平面图:

image-101.svg

That is because we can redraw it like this:

这是因为我们可以把它重画成这样:

image-102.svg

The graphs are the same, so if one is planar, the other must be too. However, the original drawing of the graph was not a planar representation of the graph.

这两个图是同一个图,因此其中一个是平面图,另一个必然也是。不过,原来那种画法并不是该图的平面表示(planar representation)

When a planar graph is drawn without edges crossing, the edges and vertices of the graph divide the plane into regions. We will call each region a face. The graph above has 3 faces (yes, we do include the “outside” region as a face). The number of faces does not change no matter how you draw the graph (as long as you do so without the edges crossing), so it makes sense to ascribe the number of faces as a property of the planar graph.

当一个平面图画成边不相交的形式时,图的边与顶点把平面分成若干区域,每个区域称为一个。上面这个图有 3 个面(是的,「外部」区域也算作一个面)。只要画法保持边不相交,无论怎样画,面数都不改变,因此把面数视为该平面图的一个性质是合理的。

WARNING: you can only count faces when the graph is drawn in a planar way. For example, consider these two representations of the same graph:

警告:只有当图以平面方式画出时才能数面。例如,看同一个图的以下两种表示:

image-103.svg image-104.svg

If you try to count faces using the graph on the left, you might say there are 5 faces (including the outside). But drawing the graph with a planar representation shows that in fact there are only 4 faces.

若用左边的图去数面,你可能会说有 5 个面(含外部)。但把该图画成平面表示后可以看到,实际上只有 4 个面。

There is a connection between the number of vertices ($v$), the number of edges ($e$) and the number of faces ($f$) in any connected planar graph. This relationship is called Euler's formula.

在任何连通平面图中,顶点数 $v$、边数 $e$ 与面数 $f$ 之间存在一个联系。这一关系称为欧拉公式。

Definition: Euler's Formula for Planar Graphs 定义:平面图的欧拉公式

For any (connected) planar graph with $v$ vertices, $e$ edges and $f$ faces, we have

对任何具有 $v$ 个顶点、$e$ 条边、$f$ 个面的(连通)平面图,都有

$\begin{equation*} v-e + f = 2 \end{equation*}$

Why is Euler's formula true? One way to convince yourself of its validity is to draw a planar graph step by step. Start with the graph $P_2\text{:}$

欧拉公式为何成立?一种令人信服的办法是逐步地画出一个平面图。从图 $P_2$ 开始:

image-105.svg

Any connected graph (besides just a single isolated vertex) must contain this subgraph. Now build up to your graph by adding edges and vertices. Each step will consist of either adding a new vertex connected by a new edge to part of your graph (so creating a new “spike”) or by connecting two vertices already in the graph with a new edge (completing a circuit).

任何连通图(除单个孤立顶点外)都必含这个子图。接下来通过不断添加边与顶点,逐步搭建出目标图。每一步或是添加一个新顶点,并用一条新边把它连到图的某处(于是生成一根新的「尖刺」);或是用一条新边连接图中已有的两个顶点(形成一条回路)。

image-106.svg image-107.svg

What do these “moves” do? When adding the spike, the number of edges increases by 1, the number of vertices increases by one, and the number of faces remains the same. But this means that $v - e + f$ does not change. Completing a circuit adds one edge, adds one face, and keeps the number of vertices the same. So again, $v - e + f$ does not change.

这两种「操作」各自带来什么效果?添加尖刺时,边数加 1,顶点数加 1,面数不变,因此 $v - e + f$ 不变。形成回路时,边数加 1,面数加 1,顶点数不变,故 $v - e + f$ 同样不变。

Since we can build any graph using a combination of these two moves, and doing so never changes the quantity $v - e + f\text{,}$ that quantity will be the same for all graphs. But notice that our starting graph $P_2$ has $v = 2\text{,}$ $e = 1$ and $f = 1\text{,}$ so $v - e + f = 2\text{.}$ This argument is essentially a proof by induction. A good exercise would be to rewrite it as a formal induction proof.

既然任何图都能由这两种操作组合搭建出来,而搭建过程从不改变 $v - e + f$ 的值,那么这个量对所有图都相同。注意起始图 $P_2$ 满足 $v = 2\text{,}$$e = 1\text{,}$$f = 1\text{,}$故 $v - e + f = 2\text{。}$ 上述论证本质上就是一个归纳法证明。把它改写成正式的归纳证明是一道很好的练习。

Non-planar Graphs 非平面图

Investigate! 探究!

For the complete graphs $K_n\text{,}$ we would like to be able to say something about the number of vertices, edges, and (if the graph is planar) faces. Let's first consider $K_3\text{:}$

对于完全图 $K_n\text{,}$我们希望能说清它的顶点数、边数,以及(若该图是平面图)面数。先考虑 $K_3$:
  1. How many vertices does $K_3$ have? How many edges?
  2. If $K_3$ is planar, how many faces should it have?
  1. $K_3$ 有多少个顶点?有多少条边?
  2. 若 $K_3$ 是平面图,它应当有多少个面?

Repeat parts (1) and (2) for $K_4\text{,}$ $K_5\text{,}$ and $K_{23}\text{.}$

对 $K_4\text{、}$$K_5$ 与 $K_{23}$ 重复第 (1)、(2) 问。

What about complete bipartite graphs? How many vertices, edges, and faces (if it were planar) does $K_{7,4}$ have? For which values of $m$ and $n$ are $K_n$ and $K_{m,n}$ planar?

完全二分图又如何?$K_{7,4}$ 有多少个顶点、多少条边,以及(若它是平面图)多少个面?对哪些 $m$ 与 $n$ 的取值,$K_n$ 与 $K_{m,n}$ 是平面图?

Not all graphs are planar. If there are too many edges and too few vertices, then some of the edges will need to intersect. The first time this happens is in $K_5\text{.}$

并非所有图都是平面图。若边太多而顶点太少,就必有一些边不得不相交。这种情形首次出现在 $K_5$ 中。

image-108.svg

If you try to redraw this without edges crossing, you quickly get into trouble. There seems to be one edge too many. In fact, we can prove that no matter how you draw it, $K_5$ will always have edges crossing.

若试图把它重画成边不相交的样子,很快就会陷入困境:似乎总多出一条边。事实上可以证明:无论怎样画,$K_5$ 总有边相交。

Theorem 4.2.1

定理 4.2.1

$K_5$ is not planar.

$K_5$ 不是平面图。

Proof

证明

The proof is by contradiction. So assume that $K_5$ is planar. Then the graph must satisfy Euler's formula for planar graphs. $K_5$ has 5 vertices and 10 edges, so we get

用反证法。假设 $K_5$ 是平面图,那么它必须满足平面图的欧拉公式。$K_5$ 有 5 个顶点、10 条边,于是得到

$\begin{equation*} 5 - 10 + f = 2 \end{equation*}$

which says that if the graph is drawn without any edges crossing, there would be $f = 7$ faces.

这表明:若该图能画成边不相交的形式,则应有 $f = 7$ 个面。

Now consider how many edges surround each face. Each face must be surrounded by at least 3 edges. Let $B$ be the total number of boundaries around all the faces in the graph. Thus we have that $B \ge 3f\text{.}$ But also $B = 2e\text{,}$ since each edge is used as a boundary exactly twice. Putting this together we get

再考察每个面被多少条边围绕。每个面至少被 3 条边围绕。设 $B$ 为图中所有面的边界总数,于是 $B \ge 3f\text{。}$ 同时又有 $B = 2e\text{,}$因为每条边恰好被用作边界两次。两式合起来给出

$\begin{equation*} 3f \le 2e \end{equation*}$

But this is impossible, since we have already determined that $f = 7$ and $e = 10\text{,}$ and $21 \not\le 20\text{.}$ This is a contradiction so in fact $K_5$ is not planar. ∎

但这不可能:前面已定出 $f = 7$ 与 $e = 10\text{,}$而 $21 \not\le 20\text{。}$ 矛盾,故 $K_5$ 实际上不是平面图。∎

The other simplest graph which is not planar is $K_{3,3}$

另一个最简单的非平面图是 $K_{3,3}$。

image-109.svg

Proving that $K_{3,3}$ is not planar answers the houses and utilities puzzle: it is not possible to connect each of three houses to each of three utilities without the lines crossing.

证明 $K_{3,3}$ 不是平面图,也就回答了「三房三管线」难题:无法在管线互不交叉的前提下,把三所房屋分别连到三种公用设施上。

Theorem 4.2.2

定理 4.2.2

$K_{3,3}$ is not planar.

$K_{3,3}$ 不是平面图。

Proof

证明

Again, we proceed by contradiction. Suppose $K_{3,3}$ were planar. Then by Euler's formula there will be 5 faces, since $v = 6\text{,}$ $e = 9\text{,}$ and $6 - 9 + f = 2\text{.}$

同样用反证法。假设 $K_{3,3}$ 是平面图。由欧拉公式,因 $v = 6\text{,}$$e = 9\text{,}$且 $6 - 9 + f = 2\text{,}$故应有 5 个面。

How many boundaries surround these 5 faces? Let $B$ be this number. Since each edge is used as a boundary twice, we have $B = 2e\text{.}$ Also, $B \ge 4f$ since each face is surrounded by 4 or more boundaries. We know this is true because $K_{3,3}$ is bipartite, so does not contain any 3-edge cycles. Thus

这 5 个面被多少条边界围绕?设该数为 $B$。由于每条边被用作边界两次,有 $B = 2e\text{。}$ 又因每个面被 4 条或更多边界围绕,有 $B \ge 4f$。之所以如此,是因为 $K_{3,3}$ 是二分图,从而不含任何长度为 3 的圈。于是

$\begin{equation*} 4f \le 2e. \end{equation*}$

But this would say that $20 \le 18\text{,}$ which is clearly false. Thus $K_{3,3}$ is not planar. ∎

但这将意味着 $20 \le 18\text{,}$显然为假。故 $K_{3,3}$ 不是平面图。∎

Note the similarities and differences in these proofs. Both are proofs by contradiction, and both start with using Euler's formula to derive the (supposed) number of faces in the graph. Then we find a relationship between the number of faces and the number of edges based on how many edges surround each face. This is the only difference. In the proof for $K_5\text{,}$ we got $3f \le 2e$ and for $K_{3,3}$ we go $4f \le 2e\text{.}$ The coefficient of $f$ is the key. It is the smallest number of edges which could surround any face. If some number of edges surround a face, then these edges form a cycle. So that number is the size of the smallest cycle in the graph.

留意这两个证明的异同。二者都是反证法,都先用欧拉公式推出图(假设情形下)的面数;随后依据每个面被多少条边围绕,找出面数与边数之间的关系——这正是二者唯一的差别。在 $K_5$ 的证明中得到 $3f \le 2e\text{,}$在 $K_{3,3}$ 的证明中得到 $4f \le 2e\text{。}$ 关键在于 $f$ 的系数:它是围绕任一面所需的最少边数。若若干条边围成一个面,则这些边构成一个圈,因此该系数就是图中最小圈的长度。

In general, if we let $g$ be the size of the smallest cycle in a graph ($g$ stands for girth, which is the technical term for this) then for any planar graph we have $gf \le 2e\text{.}$ When this disagrees with Euler's formula, we know for sure that the graph cannot be planar.

一般地,设 $g$ 为图中最小圈的长度($g$ 取自 girth,即「围长」这一术语),则对任何平面图都有 $gf \le 2e\text{。}$ 一旦这与欧拉公式相冲突,就可断定该图不可能是平面图。

Polyhedra 多面体

Investigate! 探究!

A cube is an example of a convex polyhedron. It contains 6 identical squares for its faces, 8 vertices, and 12 edges. The cube is a regular polyhedron (also known as a Platonic solid) because each face is an identical regular polygon and each vertex joins an equal number of faces.

立方体是凸多面体的一个例子。它以 6 个相同的正方形为面,有 8 个顶点、12 条棱。立方体是正多面体(regular polyhedron,也称柏拉图立体 Platonic solid),因为它的每个面都是相同的正多边形,且每个顶点连接的面数相等。

There are exactly four other regular polyhedra: the tetrahedron, octahedron, dodecahedron, and icosahedron with 4, 8, 12 and 20 faces respectively. How many vertices and edges do each of these have?

另外恰好还有四种正多面体:正四面体、正八面体、正十二面体与正二十面体,面数分别为 4、8、12 与 20。它们各自有多少个顶点与多少条棱?

Another area of mathematics where you might have heard the terms “vertex,” “edge,” and “face” is geometry. A polyhedron is a geometric solid made up of flat polygonal faces joined at edges and vertices. We are especially interested in convex polyhedra, which means that any line segment connecting two points on the interior of the polyhedron must be entirely contained inside the polyhedron.2

「顶点」「边(棱)」「面」这些术语也出现在数学的另一分支——几何学中。多面体(polyhedron)是由平面多边形面沿棱与顶点拼接而成的几何立体。我们尤其关心凸(convex)多面体,即:连接多面体内部任意两点的线段必须整个包含在该多面体之内。2

An alternative definition for convex is that the internal angle formed by any two faces must be less than $180 ^o$.

凸性的另一种等价定义是:任意两个面所成的内角必须小于 $180 ^o$。

Notice that since $8 - 12 + 6 = 2\text{,}$ the vertices, edges and faces of a cube satisfy Euler's formula for planar graphs. This is not a coincidence.

注意,由于 $8 - 12 + 6 = 2\text{,}$立方体的顶点、棱与面满足平面图的欧拉公式。这并非巧合。

We can represent a cube as a planar graph by projecting the vertices and edges onto the plane. One such projection looks like this:

把立方体的顶点与棱投影到平面上,就能把它表示为一个平面图。一种这样的投影如下:

image-110.svg

In fact, every convex polyhedron can be projected onto the plane without edges crossing. Think of placing the polyhedron inside a sphere, with a light at the center of the sphere. The edges and vertices of the polyhedron cast a shadow onto the interior of the sphere. You can then cut a hole in the sphere in the middle of one of the projected faces and “stretch” the sphere to lay down flat on the plane. The face that was punctured becomes the “outside” face of the planar graph.

事实上,每一个凸多面体都能投影到平面上而不出现棱的交叉。设想把多面体放进一个球内,球心处置一光源,多面体的棱与顶点便在球的内表面投下影子。然后在某个投影面的中央把球面剪开一个洞,再把球面「拉展」平铺到平面上。被剪开的那个面就成为平面图的「外部」面。

The point is, we can apply what we know about graphs (in particular planar graphs) to convex polyhedra. Since every convex polyhedron can be represented as a planar graph, we see that Euler's formula for planar graphs holds for all convex polyhedra as well. We also can apply the same sort of reasoning we use for graphs in other contexts to convex polyhedra. For example, we know that there is no convex polyhedron with 11 vertices all of degree 3, as this would make 33/2 edges.

要点在于:关于图(尤其是平面图)的已有结论都可用于凸多面体。既然每个凸多面体都能表示为平面图,平面图的欧拉公式对所有凸多面体同样成立。我们在其他场合用于图的推理方式,也可照样用于凸多面体。例如,可知不存在有 11 个顶点且各顶点度均为 3 的凸多面体,因为那将给出 33/2 条棱。

Example 4.2.3

示例 4.2.3

Is there a convex polyhedron consisting of three triangles and six pentagons? What about three triangles, six pentagons and five heptagons (7-sided polygons)?

是否存在由三个三角形与六个五边形组成的凸多面体?由三个三角形、六个五边形与五个七边形(7 条边的多边形)组成的凸多面体又如何?

Solution

解答

How many edges would such polyhedra have? For the first proposed polyhedron, the triangles would contribute a total of 9 edges, and the pentagons would contribute 30. However, this counts each edge twice (as each edge borders exactly two faces), giving 39/2 edges, an impossibility. There is no such polyhedron.

这样的多面体会有多少条棱?对第一种设想的多面体,三角形共贡献 9 条边,五边形共贡献 30 条。但这样每条棱都被数了两次(因为每条棱恰好是两个面的公共边),于是得到 39/2 条棱,这不可能。故不存在这样的多面体。

The second polyhedron does not have this obstacle. The extra 35 edges contributed by the heptagons give a total of 74/2 = 37 edges. So far so good. Now how many vertices does this supposed polyhedron have? We can use Euler's formula. There are 14 faces, so we have $v - 37 + 14 = 2$ or equivalently $v = 25\text{.}$ But now use the vertices to count the edges again. Each vertex must have degree at least three (that is, each vertex joins at least three faces since the interior angle of all the polygons must be less that $180^\circ$), so the sum of the degrees of vertices is at least 75. Since the sum of the degrees must be exactly twice the number of edges, this says that there are strictly more than 37 edges. Again, there is no such polyhedron.

第二种多面体不存在这一障碍。七边形额外贡献 35 条边,总计得到 74/2 = 37 条棱,到此尚无矛盾。那么这个设想中的多面体有多少个顶点?可用欧拉公式:共有 14 个面,故 $v - 37 + 14 = 2\text{,}$即 $v = 25\text{。}$ 但现在再用顶点来数棱。每个顶点的度至少为 3(即每个顶点至少连接三个面,因为所有多边形的内角都必须小于 $180^\circ$),于是顶点度数之和至少为 75。而度数之和必须恰好等于棱数的两倍,这说明棱数严格大于 37。于是同样不存在这样的多面体。

To conclude this application of planar graphs, consider the regular polyhedra. Above we claimed there are only five. How do we know this is true? We can prove it using graph theory.

作为平面图这一应用的收尾,来考虑正多面体。前面断言正多面体只有五种。如何确知这一点?可以用图论来证明。

Theorem 4.2.3: regular polyhedra

定理 4.2.3:正多面体

There are exactly five regular polyhedra.

正多面体恰好有五种。

Proof

证明

Recall that a regular polyhedron has all of its faces identical regular polygons, and that each vertex has the same degree. Consider the cases, broken up by what the regular polygon might be.

回忆正多面体的所有面都是相同的正多边形,且每个顶点的度相同。按这个正多边形可能是何种多边形分情形讨论。

Case 1: Each face is a triangle. Let $f$ be the number of faces. There are then $3f/2$ edges. Using Euler's formula we have $v - 3f/2 + f = 2$ so $v = 2 + f/2\text{.}$ Now each vertex has the same degree, say $k\text{.}$ So the number of edges is also $kv/2\text{.}$ Putting this together gives

情形 1:每个面都是三角形。设面数为 $f$,则棱数为 $3f/2$。由欧拉公式得 $v - 3f/2 + f = 2$,故 $v = 2 + f/2\text{。}$ 又每个顶点的度相同,记为 $k\text{,}$于是棱数也等于 $kv/2\text{。}$ 合起来得到

$\begin{equation*} e = \frac{3f}{2} = \frac{k(2+f/2)}{2} \end{equation*}$

which says

由此得

$\begin{equation*} k = \frac{6f}{4+f} \end{equation*}$

We need $k$ and $f$ to both be positive integers. Note that $\frac{6f}{4+f}$ is an increasing function for positive $f\text{,}$ and has a horizontal asymptote at 6. Thus the only possible values for $k$ are 3, 4, and 5. Each of these are possible. To get $k = 3\text{,}$ we need $f = 4$ (this is the tetrahedron). For $k = 4$ we take $f = 8$ (the octahedron). For $k = 5$ take $f = 20$ (the icosahedron). Thus there are exactly three regular polyhedra with triangles for faces.

$k$ 与 $f$ 都必须是正整数。注意 $\frac{6f}{4+f}$ 在 $f$ 取正值时是递增函数,且以 6 为水平渐近线。因此 $k$ 只可能取 3、4、5,而这三个值都能实现:要使 $k = 3\text{,}$需 $f = 4$(这就是正四面体);$k = 4$ 时取 $f = 8$(正八面体);$k = 5$ 时取 $f = 20$(正二十面体)。故以三角形为面的正多面体恰有三种。

Case 2: Each face is a square. Now we have $e = 4f/2 = 2f\text{.}$ Using Euler's formula we get $v = 2 + f\text{,}$ and counting edges using the degree $k$ of each vertex gives us

情形 2:每个面都是正方形。此时 $e = 4f/2 = 2f\text{。}$ 由欧拉公式得 $v = 2 + f\text{,}$再用每个顶点的度 $k$ 来数棱,得到

$\begin{equation*} e = 2f = \frac{k(2+f)}{2} \end{equation*}$

Solving for $k$ gives

解出 $k$ 得

$\begin{equation*} k = \frac{4f}{2+f} = \frac{8f}{4+2f} \end{equation*}$

This is again an increasing function, but this time the horizontal asymptote is at $k = 4\text{,}$ so the only possible value that $k$ could take is 3. This produces 6 faces, and we have a cube. There is only one regular polyhedron with square faces.

这同样是递增函数,但这次水平渐近线在 $k = 4$ 处,故 $k$ 只可能取 3。此时面数为 6,即立方体。以正方形为面的正多面体只有一种。

Case 3: Each face is a pentagon. We perform the same calculation as above, this time getting $e = 5f/2$ so $v = 2 + 3f/2\text{.}$ Then

情形 3:每个面都是五边形。作同样的计算,这次得 $e = 5f/2\text{,}$故 $v = 2 + 3f/2\text{。}$ 于是

$\begin{equation*} e = \frac{5f}{2} = \frac{k(2+3f/2)}{2} \end{equation*}$

so

从而

$\begin{equation*} k = \frac{10f}{4+3f} \end{equation*}$

Now the horizontal asymptote is at $\frac{10}{3}\text{.}$ This is less than 4, so we can only hope of making $k = 3\text{.}$ We can do so by using 12 pentagons, getting the dodecahedron. This is the only regular polyhedron with pentagons as faces.

此时水平渐近线在 $\frac{10}{3}$ 处,小于 4,故只有可能取 $k = 3\text{。}$ 用 12 个五边形即可实现,得到正十二面体。这是以五边形为面的唯一正多面体。

Case 4: Each face is an $n$-gon with $n \ge 6\text{.}$ Following the same procedure as above, we deduce that

情形 4:每个面都是 $n$ 边形,且 $n \ge 6\text{。}$ 按同样步骤推出

$\begin{equation*} k = \frac{2nf}{4+(n-2)f} \end{equation*}$

which will be increasing to a horizontal asymptote of $\frac{2n}{n-2}\text{.}$ When $n = 6\text{,}$ this asymptote is at $k = 3\text{.}$ Any larger value of $n$ will give an even smaller asymptote. Therefore no regular polyhedra exist with faces larger than pentagons.3

它递增地趋于水平渐近线 $\frac{2n}{n-2}\text{。}$ 当 $n = 6$ 时,该渐近线在 $k = 3$ 处;$n$ 取更大的值只会给出更小的渐近线。因此不存在以边数多于五边形的多边形为面的正多面体。3

Notice that you can tile the plane with hexagons. This is an infinite planar graph; each vertex has degree 3. These infinitely many hexagons correspond to the limit as $f \to \infty$ to make $k = 3\text{.}$

注意,六边形可以密铺平面。那是一个无限的平面图,其中每个顶点的度均为 3。这无穷多个六边形对应于令 $f \to \infty$ 以使 $k = 3$ 的极限情形。