# 线图

在图论中，图 G 的**线图**记作 L(G)，是一个顶点对应于 G 的边的图：当 G 中两条对应的边共享一个端点时，L(G) 中相应的两个顶点便相连。这一构造把注意力从图的顶点转移到图的边上，是研究得最为广泛的图变换之一，《数学评论》中引用到的关于线图或线有向图的论文已超过一千篇。<sup>[1](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | L(G) 中 G 的每条边对应一个顶点；L(G) 中两个顶点相邻当且仅当 G 中对应的两条边有一个公共顶点<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> |
| 规模 | 一个有 n 个节点、e 条边、顶点度为 d<sub>i</sub> 的图，其线图有 e 个节点和 \( e' = \tfrac{1}{2}\sum_{i=1}^{n} d_i^2 - e \) 条边<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> |
| 唯一性 | 惠特尼（1932）：任意两个连通图若线图同构，则本身同构，例外是 K<sub>3</sub> 与 K<sub>1,3</sub><sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> |
| 识别 | 一个简单图是线图当且仅当它不以九个贝尼克图中的任何一个作为导出子图<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> |
| 谱标志 | 线图邻接矩阵的每个特征值都至少为 −2<sup>[3](https://www.mdpi.com/2227-7390/13/4/549)</sup> |
| 算法 | 鲁索普洛斯（1973）给出了 O(max{m, n}) 的识别与根重构算法；勒奥（1974）给出了线性时间算法<sup>[1](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)</sup> |
| 有向类比 | 线有向图由哈拉里与诺曼于 1960 年引入，为有向图的每条弧配置一个顶点<sup>[4](https://cir.nii.ac.jp/crid/1360292619350589184)</sup> |

## 定义与基本结构

给定一个简单图 G，线图 L(G) 的构造方式是：为 G 的每条边关联一个顶点，并恰好在 G 中对应的两条边有公共顶点时连接这两个顶点。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 这一构造也称为伴随图、共轭图、导出图、边到顶点对偶图或互换图；互换图这一名称可追溯到范罗伊与威尔夫（1965），不应与 (0,1)-矩阵的另一个无关的互换图混淆。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 当图 H 满足 L(H) = G 时，H 称为 G 的根图。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup>

线图的规模直接由根图的度决定：一个有 n 个节点、e 条边、顶点度为 \( d_i \) 的图，其线图有 \( n' = e \) 个节点和 \( e' = \tfrac{1}{2}\sum_{i=1}^{n} d_i^2 - e \) 条边。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 这种对度的二次依赖是应用中的实际障碍：当最大度与顶点数同阶时，线图约有 \( |V|^2 \) 条边，对于即便只有数百万个顶点的图来说也是难以承受的。<sup>[5](https://arxiv.org/abs/2311.10337)</sup>

一些具名图与其线图之间有简明的对应关系。爪 K<sub>1,3</sub> 的线图是三角形 C<sub>3</sub>；星 S<sub>n</sub> 的线图是完全图 K<sub>n−1</sub>；圈 C<sub>n</sub> 的线图仍是 C<sub>n</sub>；路径 P<sub>n</sub> 的线图是 P<sub>n−1</sub>。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 线图总是无爪的，因为 G 中在一个顶点相交的三条边在 L(G) 中构成一个三角形。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup>

## 历史

这一概念最早出现在惠特尼 1932 年和 1933 年关于连通性与同构的论文中，但把线图作为独立对象的研究始于十年之后，即 1943 年的克劳斯。<sup>[1](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)</sup> 这一想法曾以不同名称被多次重新发现，包括导出图、互换图和边到顶点对偶。<sup>[6](https://doi.org/10.1155%2FS0161171204310094)</sup> 其有向对应物——线有向图——由当时先后在 IBM、滑铁卢大学工作、后来任职于新墨西哥州立大学的图论学家弗兰克·哈拉里（Frank Harary）与罗伯特·Z·诺曼（Robert Z. Norman）于 1960 年研究。<sup>[4](https://cir.nii.ac.jp/crid/1360292619350589184)</sup> 尽管有如此悠久的历史，第一部综合性专著——普渡大学韦恩堡分校的洛厄尔·W·贝尼克（Lowell W. Beineke）与鲍尔州立大学的杰伊·S·巴加（Jay S. Bagga）合著的《线图与线有向图》——直到 2021 年才问世。<sup>[1](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)</sup>

## 刻画与识别

并非每个图都是线图，有若干等价刻画可以判别哪些是。克劳斯（1943）证明，一个简单图 G 是线图当且仅当其边可以分解为若干完全子图，且 G 的每个顶点至多出现在分解中的两个成员里；这一定理在算法上并不直接有用，因为涉及的分解数目可能很大。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 范罗伊与威尔夫（1965）给出了一个判据，即无爪且对导出菱形与奇三角形附加一个条件。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup>

被引用最多的刻画是贝尼克的：一个简单图是某个简单图的线图，当且仅当它不以九个特定图（贝尼克图）中的任何一个作为导出子图。九个图中的一个有四个节点（爪 K<sub>1,3</sub>），两个有五个节点，六个有六个节点，其中包括轮 W<sub>6</sub>。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 一个谱检验可以补充这些判据：最小邻接特征值低于 −2 的图不是线图。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup>

识别是可行的。鲁索普洛斯于 1973 年发表了一个 O(max{m, n}) 算法，用来找出满足 L(H) = G 的图 H；勒奥于 1974 年给出了一个线性时间算法，从线图重构原图。<sup>[1](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 刘、特拉亚诺夫斯基与范米格姆后来给出了一个 O(n²) 重构算法，其中 n 是线图的顶点数。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup>

## 惠特尼同构定理

最强的结构结果是惠特尼定理：若 G 与 H 是连通图且 L(G) 同构于 L(H)，则 G 与 H 同构，唯一的例外是 K<sub>1,3</sub> 与 K<sub>3</sub> 这一对，它们的线图都是三角形。<sup>[7](https://people.math.binghamton.edu/zaslav/Oldcourses/381.S13/line-graphs.pdf)</sup> 换言之，一个连通图由其边邻接关系唯一确定，只有一个小小的例外。<sup>[7](https://people.math.binghamton.edu/zaslav/Oldcourses/381.S13/line-graphs.pdf)</sup> 该定理已被推广到多重图，其中大多数多重图也由其线图唯一确定。<sup>[8](https://arxiv.org/abs/2105.08610)</sup>

一个相关的不动点问题涉及该变换的迭代。除非 G 同构于自身的线图，否则取两次线图不会回到原图；具有这一性质的连通图只有 n ≥ 3 的圈图 C<sub>n</sub>；更一般地，同构于自身线图的图是度为 2 的正则图，包括圈的不交并。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup>

## 与着色和遍历的关系

线图把 L(G) 的顶点问题转化为 G 的边问题。L(G) 的色数等于 G 的边色数，即为使相邻边颜色不同而给边着色所需的最少颜色数。<sup>[7](https://people.math.binghamton.edu/zaslav/Oldcourses/381.S13/line-graphs.pdf)</sup> 遍历性质也同样转移：若 G 有欧拉回路，则 L(G) 有哈密顿圈，因为欧拉回路中相继的边构成一条恰好访问 L(G) 每个顶点一次的闭合游走；反之不成立。<sup>[7](https://people.math.binghamton.edu/zaslav/Oldcourses/381.S13/line-graphs.pdf)</sup> 因此，欧拉图的线图既是欧拉图又是哈密顿图。<sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 连通性也得以保持：对于没有孤立顶点的图 G，L(G) 连通当且仅当 G 连通。<sup>[7](https://people.math.binghamton.edu/zaslav/Oldcourses/381.S13/line-graphs.pdf)</sup>

## 谱性质

线图具有独特的谱。线图邻接矩阵的所有特征值都至少为 −2，且 G 的关联矩阵 C 与其线图的邻接矩阵 L 满足 \( L = C^{\top}C - 2I \)，其中 I 是单位矩阵。<sup>[3](https://www.mdpi.com/2227-7390/13/4/549)</sup><sup> • </sup><sup>[2](https://mathworld.wolfram.com/LineGraph.html)</sup> 这一下界使特征值 −2 在该理论中具有特殊地位：迭代线图中唯一的负特征值为 −2 的图，其补图与能量已被研究；已知 G 的无符号拉普拉斯谱，除 −2 的重数外，可确定线图邻接矩阵的谱。<sup>[9](https://arxiv.org/abs/2205.02276)</sup><sup> • </sup><sup>[10](https://academic.oup.com/qjmath/article/75/3/869/7696175)</sup>

## 应用

**图上的机器学习。** 由于线图的每个节点对应于原图中唯一的一条边，G 中的链接预测可以改写为 L(G) 中的节点分类，让图神经网络直接学习边特征，而不必因把子图池化到固定大小而造成信息损失。把图转换为线图只需线性时间，该方法在十四个链接预测数据集上以更少的参数超越了当时最先进的方法。<sup>[11](https://arxiv.org/abs/2010.10046)</sup> 线图变换还支持社区发现与材料性质预测，其中原子线图神经网络通过原子三元组编码键角。<sup>[12](https://link.springer.com/article/10.1007/s41109-026-00784-5)</sup> 计算代价是实实在在的：与标准图卷积网络相比，线图上的构造与消息传递通常每层增加 2 到 3 倍的开销。

**以边为中心的网络分析。** 在网络科学中，线图是把以节点为中心的网络转变为以边为中心的网络最著名的两种方式之一，另一种是链接相似度。它由关联矩阵 H 计算为乘积 \( HH^{\top} \)，把共享一个端点（stub）的边连接起来；对结果施加社区发现，可将边分配到不重叠的社区，再投影回节点即成为重叠社区。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC10592364/)</sup> 一种通过加权线图进行边聚类的分布式实现避免了显式构造线图，在 256 个计算节点上几分钟内就对拥有数百亿条边的动态图完成了聚类。<sup>[14](https://academic.oup.com/comnet/article/13/3/cnaf006/8125712)</sup>

**化学与超图。** 建立在边与关联关系之上的图构造在化学图工作流中是标准做法，其中节点代表原子或分子，边代表由距离、能量或其他标准定义的相互作用。<sup>[15](https://www.sciencedirect.com/science/article/abs/pii/S0010465526002341)</sup> 线图的思想也推广到超图：每条超边成为一个节点，邻接由共享的关联关系诱导；这种线超图变换把高阶结构映射到更简单的加权图上，与团展开相比减少了内存占用，并使诸如福曼–里奇曲率之类的工具能够用于大型网络。<sup>[12](https://link.springer.com/article/10.1007/s41109-026-00784-5)</sup>

## 推广

这一概念向若干方向延伸。哈拉里与诺曼定义的线有向图为有向图的每条弧配置一个顶点，并在两条弧构成一条长度为二的定向路径时连接这两个顶点；有向线图由边集可划分为单调有向二部团这一性质来刻画。<sup>[4](https://cir.nii.ac.jp/crid/1360292619350589184)</sup><sup> • </sup><sup>[16](https://combinatorialpress.com/jcmcc-articles/volume-130/a-characterization-of-line-graphs-of-directed-graphs/)</sup> 符号图与增益图的线图把克劳斯、范罗伊–威尔夫与贝尼克的刻画推广到符号情形。<sup>[17](https://arxiv.org/abs/2101.09677)</sup> 相关结构包括全图、路径图和超线图，近期工作还刻画了混合图（兼含有向边与无向边）的线图。<sup>[1](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)</sup><sup> • </sup><sup>[18](https://articles.math.cas.cz/10.21136/CMJ.2026.0486-24)</sup>

## References

1. [Jay Bagga and Lowell Beineke (2022). New results and open problems in line graphs. AKCE International Journal of Graphs and Combinatorics 19(3), 182–190.](https://www.tandfonline.com/doi/abs/10.1080/09728600.2022.2093146)
2. [Line Graph, Wolfram MathWorld](https://mathworld.wolfram.com/LineGraph.html)
3. [On Spectral Graph Determination, Mathematics (MDPI) 13(4), 549](https://www.mdpi.com/2227-7390/13/4/549)
4. [Frank Harary and Robert Z. Norman (1960). Some properties of line digraphs. Rendiconti del Circolo Matematico di Palermo 9(2), 161–168.](https://cir.nii.ac.jp/crid/1360292619350589184)
5. [Michael Ostroski, Geoffrey Sanders, Trevor Steil, Roger Pearce (2023). Scalable Edge Clustering of Dynamic Graphs via Weighted Line Graphs. arXiv.](https://arxiv.org/abs/2311.10337)
6. [Jay Bagga (2004). Old and new generalizations of line graphs. International Journal of Mathematics and Mathematical Sciences.](https://doi.org/10.1155%2FS0161171204310094)
7. [Line Graphs (course notes), Binghamton University](https://people.math.binghamton.edu/zaslav/Oldcourses/381.S13/line-graphs.pdf)
8. [Whitney's Theorem for Line Graphs of Multi-Graphs. arXiv.](https://arxiv.org/abs/2105.08610)
9. [Iterated line graphs with only negative eigenvalues −2, their complements and energy. arXiv.](https://arxiv.org/abs/2205.02276)
10. [Exponentially Many Graphs Are Determined By Their Spectrum. The Quarterly Journal of Mathematics 75(3), 869.](https://academic.oup.com/qjmath/article/75/3/869/7696175)
11. [Line Graph Neural Networks for Link Prediction. arXiv.](https://arxiv.org/abs/2010.10046)
12. [Geometry-informed modeling and evaluation of coverage resilience in complex communication networks. Applied Network Science.](https://link.springer.com/article/10.1007/s41109-026-00784-5)
13. [Living on the edge: network neuroscience beyond nodes. PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC10592364/)
14. [Scalable edge clustering of dynamic graphs via weighted line graphs. Journal of Complex Networks 13(3), cnaf006.](https://academic.oup.com/comnet/article/13/3/cnaf006/8125712)
15. [ChemNetworks: New capabilities for high-throughput, real-time chemical graph construction and analysis. Computers & Chemistry.](https://www.sciencedirect.com/science/article/abs/pii/S0010465526002341)
16. [A characterization of line graphs of directed graphs. Journal of Combinatorial Mathematics and Combinatorial Computing 130, 19–32.](https://combinatorialpress.com/jcmcc-articles/volume-130/a-characterization-of-line-graphs-of-directed-graphs/)
17. [Characterizations of line graphs in signed and gain graphs. arXiv.](https://arxiv.org/abs/2101.09677)
18. [A note on the Krausz theorem and the Whitney theorem for mixed line graphs. Czechoslovak Mathematical Journal.](https://articles.math.cas.cz/10.21136/CMJ.2026.0486-24)

---
*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/line-graph

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