# 路图

路图是由一条顶点链构成、各顶点由边首尾相连的图，没有分支，也没有圈。含 \( n \) 个顶点的路图记作 \( P_n \)：其顶点集为 \( \{v_1, v_2, \ldots, v_n\} \)，边集为 \( \{\{v_i, v_{i+1}\} : 1 \le i \le n-1\} \)，因此恰好有 \( n-1 \) 条边。<sup>[1](https://www.mathwords.com/p/path_graph.htm)</sup> 它是一棵树，其中两个端点度为 1，其余 \( n-2 \) 个顶点度为 2，并且可以画成所有顶点和边都在同一条直线上的形状。<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | \( P_n \)：顶点 \( v_1, \ldots, v_n \)，边 \( \{v_i, v_{i+1}\} \)，其中 \( 1 \le i \le n-1 \)<sup>[1](https://www.mathwords.com/p/path_graph.htm)</sup> |
| 规模 | \( n-1 \) 条边；是一棵树，因而连通且无圈<sup>[1](https://www.mathwords.com/p/path_graph.htm)</sup> |
| 度 | 两个度为 1 的顶点（端点）；\( n-2 \) 个度为 2 的顶点<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup> |
| 与圈的关系 | 从圈图 \( C_n \) 中删去任意一条边即得 \( P_n \)<sup>[3](https://mathonline.wikidot.com/path-graphs)</sup> |
| 邻接谱 | 特征值为 \( 2\cos(\pi r/(n+1)) \)，其中 \( 1 \le r \le n \)<sup>[4](https://www.math.ucsd.edu/~jmoneill/abacus_winter2020.pdf)</sup> |
| 拉普拉斯谱 | \( \lambda_k = 2 - 2\cos((k-1)\pi/n) \)；当 \( n \) 较大时，第二特征值约为 \( \pi^2/n^2 \)<sup>[5](https://github.com/RiazML/math-for-llms/blob/master/11-Graph-Theory/04-Spectral-Graph-Theory/notes.md)</sup> |
| 色多项式 | \( \pi_n(z) = z(z-1)^{n-1} \)<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup> |
| 线图 | \( P_n \) 的线图同构于 \( P_{n-1} \)<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup> |

## 结构

路图是最简单的连通图族：每个 \( P_n \) 都是一棵树，而且在树当中，它是最大度尽可能小的那一类，最大度为 2。删去任意一条边都会使它不连通；它也可以从圈图 \( C_n \) 中删去一条边得到，而这条边的删除恰好打破了圈。<sup>[3](https://mathonline.wikidot.com/path-graphs)</sup> 小规模的情形与其他标准图重合：\( P_1 \) 是单点图，等同于完全图 \( K_1 \) 和星图 \( S_1 \)；\( P_2 \) 同构于完全二部图 \( K_{1,1} \)，\( P_3 \) 同构于 \( K_{1,2} \)。<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup>

路图也作为更大图族的构件出现。二维网格图是笛卡尔积 \( P_m \,\square\, P_n \)，有 \( mn \) 个顶点和 \( 2mn - m - n \) 条边。<sup>[6](https://mathworld.wolfram.com/GridGraph.html)</sup> 扇形图是空图与路图的联。<sup>[7](https://mathworld.wolfram.com/FanGraph.html)</sup>

## 谱性质

与 \( P_n \) 相关联的两个标准矩阵都具有闭形式的谱。邻接矩阵的特征值为 \( 2\cos(\pi r/(n+1)) \)，其中 \( r = 1, \ldots, n \)，这一结果是通过将 \( P_n \) 与圈 \( C_{2n+2} \) 相联系而得到的。<sup>[4](https://www.math.ucsd.edu/~jmoneill/abacus_winter2020.pdf)</sup> 拉普拉斯特征值为 \( \lambda_k = 2 - 2\cos((k-1)\pi/n) \)，其中 \( k = 1, \ldots, n \)。<sup>[5](https://github.com/RiazML/math-for-llms/blob/master/11-Graph-Theory/04-Spectral-Graph-Theory/notes.md)</sup>

第二小的拉普拉斯特征值，即代数连通度，衡量一个图有多难被切开。对于路图，它等于 \( 2 - 2\cos(\pi/n) \)，当 \( n \) 较大时约为 \( \pi^2/n^2 \)：一条长路很容易被断开，因为删去中间那条边就把它分成了两半。<sup>[5](https://github.com/RiazML/math-for-llms/blob/master/11-Graph-Theory/04-Spectral-Graph-Theory/notes.md)</sup>

路图在一种精确的意义上还是谱刚性的。曼尼托巴大学的数学家迈克尔·杜布（Michael Doob）与蒂尔堡大学的威廉·H·哈默斯（Willem H. Haemers）于 2002 年证明：若一个图的邻接矩阵具有 \( P_n \) 的补图的谱，则该图必为那个补图；他们指出，人们早已知道路图本身既可由它的邻接谱唯一确定，也可由它的拉普拉斯谱唯一确定。<sup>[8](https://www.researchgate.net/publication/242986413_The_complement_of_the_path_is_determined_by_its_spectrum)</sup>

## 多项式与标号

若干图多项式在路图上取简单的形式。色多项式为 \( \pi_n(z) = z(z-1)^{n-1} \)，这反映了路图可以沿链交替使用两种颜色来着色。<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup> 可靠性多项式为 \( C_n(p) = (1-p)^{n-1} \)，因为只有当 \( n-1 \) 条边全部存活时，网络才保持连通。<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup> 路图是优美的，即其顶点可以用 0 到 \( n-1 \) 的互异整数标号，使得边标号也互不相同。<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup>

该族的其他不变量也已精确算出。\( P_n \) 的无线数，即在距离条件约束下标号的最小跨度，由刘东（Dong D.-F. Liu）与朱绪鼎（Xuding Zhu）于 2005 年确定：当 \( n = 1 \) 时为 0，当 \( n = 3 \) 时为 3，当 \( n \) 为偶数时为 \( n(n-2)/2 + 1 \)，当 \( n \) 为奇数时为 \( (n-3)(n+1)/2 + 4 \)。<sup>[9](https://mathworld.wolfram.com/RadioNumber.html)</sup> \( P_n \) 的卵石数为 \( 2^{n-1} \)。<sup>[10](https://mathworld.wolfram.com/PebblingNumber.html)</sup>

## 术语与软件

“路”这个词在图论中有两个相关的含义：路图是本身为一条链的图，而图中的路是不重复经过任何顶点的游走；图路则是作为路图的子图。<sup>[11](https://mathworld.wolfram.com/GraphPath.html)</sup> 各文献在一些细微的约定上也有分歧，一份定义综述提醒说，游走、迹和路这几个术语在不同作者之间差异很大，因此应始终在手头文本中核对定义。<sup>[12](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Discrete_Mathematics_for_Computer_Science_%28Fitch%29/05%3A_Graph_Theory/5.04%3A_Paths)</sup>

软件中通常提供标准的路图生成器。Wolfram 语言提供 `PathGraph[Range[n]]`，并在 `GraphData[{"Path", n}]` 下提供预计算的性质，还用 `PathGraphQ[g] && AcyclicGraphQ[g]` 检测该类图。<sup>[2](https://mathworld.wolfram.com/PathGraph.html)</sup> NetworkX 的 `path_graph(n)` 返回 \( P_n \)，节点标号为 0 到 \( n-1 \)，由 \( n-1 \) 条边连接。<sup>[13](https://networkx.org/documentation/networkx-1.7/reference/generated/networkx.generators.classic.path_graph.html)</sup>

## References

1. [Path Graph — Definition, Formula & Examples, Mathwords](https://www.mathwords.com/p/path_graph.htm)
2. [Path Graph, Wolfram MathWorld](https://mathworld.wolfram.com/PathGraph.html)
3. [Path Graphs, Mathonline](https://mathonline.wikidot.com/path-graphs)
4. [Spectral Graph Theory, J. O'Neill, UCSD Abacus notes (2020)](https://www.math.ucsd.edu/~jmoneill/abacus_winter2020.pdf)
5. [Spectral Graph Theory notes, math-for-llms repository](https://github.com/RiazML/math-for-llms/blob/master/11-Graph-Theory/04-Spectral-Graph-Theory/notes.md)
6. [Grid Graph, Wolfram MathWorld](https://mathworld.wolfram.com/GridGraph.html)
7. [Fan Graph, Wolfram MathWorld](https://mathworld.wolfram.com/FanGraph.html)
8. [M. Doob and W. H. Haemers (2002). The complement of the path is determined by its spectrum. Linear Algebra and its Applications 356:57–65.](https://www.researchgate.net/publication/242986413_The_complement_of_the_path_is_determined_by_its_spectrum)
9. [Radio Number, Wolfram MathWorld](https://mathworld.wolfram.com/RadioNumber.html)
10. [Pebbling Number, Wolfram MathWorld](https://mathworld.wolfram.com/PebblingNumber.html)
11. [Graph Path, Wolfram MathWorld](https://mathworld.wolfram.com/GraphPath.html)
12. [5.4: Paths, LibreTexts Discrete Mathematics for Computer Science](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Discrete_Mathematics_for_Computer_Science_%28Fitch%29/05%3A_Graph_Theory/5.04%3A_Paths)
13. [path_graph — NetworkX 1.7 documentation](https://networkx.org/documentation/networkx-1.7/reference/generated/networkx.generators.classic.path_graph.html)

---
*Initially written 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/path-graph

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