# 拉普拉斯矩阵

图的**拉普拉斯矩阵**是矩阵 \( L = D - A \)，其中 \( A \) 是该图的邻接矩阵，\( D \) 是顶点度数的对角矩阵。它同时编码了每个顶点如何连接以及它有多少条连接，其特征值揭示了图的结构性质，例如连通性、生成树的数量以及顶点的自然聚类。

| 关键事实 | 详情 |
|---|---|
| 定义 | 对于顶点为 \( 1, \ldots, n \) 的图 \( G \)，若 \( i \) 与 \( j \) 相邻，则 \( L(G) \) 的 \( (i,j) \) 元为 \( -1 \)；若不相邻则为 \( 0 \)；而 \( (i,i) \) 元为 \( d_i \)，即顶点 \( i \) 的度数<sup>[1](https://doi.org/10.1007/978-1-84882-981-7_4)</sup> |
| 等价形式 | \( L(G) = D(G) - A(G) \)，即对角度数矩阵与 (0,1) 邻接矩阵之差<sup>[2](https://www.sciencedirect.com/science/article/pii/0024379594904863)</sup> |
| 谱性质 | \( L \) 是对称且半正定的；其特征值可排序为 \( 0 \leq \mu_1 \leq \mu_2 \leq \cdots \leq \mu_n \)，且常向量是特征值为 0 的特征向量<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup> |
| 二次型 | \( \mathbf{x}^T L \mathbf{x} = \sum_{e = \{i,j\} \in E} (x_i - x_j)^2 \)，即各边上差值的平方和<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup> |
| 矩阵树定理 | 对任意 \( i \)，\( \det(L_G[i]) \)——即删去 \( L \) 的第 \( i \) 行与第 \( i \) 列后的行列式——等于 \( G \) 的生成树数目<sup>[4](https://people.orie.cornell.edu/dpw/orie6334/Fall2016/lecture6.pdf)</sup> |
| 最大特征值界 | 设最大度数为 \( \bar{\delta} \)，则最大特征值满足 \( \mu_n \geq \bar{\delta} + 1 \)<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup> |
| 软件 | 在 Wolfram 语言中实现为 `KirchhoffMatrix`<sup>[5](https://mathworld.wolfram.com/LaplacianMatrix.html)</sup>，在 NetworkX 中实现为 `laplacian_matrix`，返回未归一化的 \( L = D - A \)<sup>[6](https://networkx.org/documentation/stable/reference/generated/networkx.linalg.laplacianmatrix.laplacian_matrix.html)</sup> |

## 定义

设 \( G \) 是一个顶点集为 \( V(G) = \{1, \ldots, n\} \)、含 \( m \) 条边的图。拉普拉斯矩阵 \( L(G) \) 是一个 \( n \times n \) 矩阵，其行与列以顶点为索引。若 \( i \neq j \)，当顶点 \( i \) 与 \( j \) 不相邻时，\( (i,j) \) 元为 \( 0 \)；相邻时为 \( -1 \)；而 \( (i,i) \) 元为 \( d_i \)，即顶点 \( i \) 的度数<sup>[1](https://doi.org/10.1007/978-1-84882-981-7_4)</sup>。

等价地，可以将其写作 \( L(G) = D(G) - A(G) \)，其中 \( A(G) \) 表示标准的 (0,1) 邻接矩阵，\( D(G) \) 表示以各顶点度数为元素的对角矩阵<sup>[2](https://www.sciencedirect.com/science/article/pii/0024379594904863)</sup>。由于每一行在对角线上有一个度数、对每个邻居有一个 \( -1 \)，所以每一行之和为零：第 \( i \) 个对角元 \( \deg(i) \) 恰好抵消该行中的 \( -1 \) 元<sup>[7](https://math.ou.edu/~kmartin/graphs/graphs.pdf)</sup>。

该矩阵依赖于为顶点所选定的顺序，这与邻接矩阵的情形相同<sup>[7](https://math.ou.edu/~kmartin/graphs/graphs.pdf)</sup>。重新排列顶点会同时置换行与列，这会改变矩阵的书写形式，但不改变特征值的多重集。

## 基本性质

**对称性与半正定性。** 对于无向图，\( D \) 与 \( A \) 均为对称矩阵，因此 \( L^T = (D - A)^T = D - A = L \)<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup>。拉普拉斯矩阵还是半正定的，其二次型有一个简洁的逐边表达式：

\[ \mathbf{x}^T L \mathbf{x} = \sum_{e = \{i,j\} \in E} (x_i - x_j)^2 \]

对任意向量 \( \mathbf{x} = (x_1, \ldots, x_n)^T \) 成立<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup>。这一恒等式可由 \( L = B B^T \) 推出，其中 \( B \) 是该图的一个定向关联矩阵，于是 \( \mathbf{x}^T L \mathbf{x} = \|B^T \mathbf{x}\|^2 \)<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup>。该公式直接表明 \( L \) 为何是半正定的：它是一个平方和。

**零特征值。** 常数单位向量 \( \frac{1}{\sqrt{n}}(1, \ldots, 1)^T \) 是 \( L \) 的特征值为 0 的特征向量，因为关联矩阵 \( B \) 的每一列恰好有一个 \( 1 \) 和一个 \( -1 \)<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup>。常向量未必是唯一特征值为零的特征向量：具有两个连通分量的图至少有两个线性无关的、特征值为零的单位特征向量，这可以通过将 \( L \) 写成块矩阵看出<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup>。

**极值特征值。** 最大特征值 \( \mu_n \) 具有优化刻画 \( \mu_n = \max\{\langle \mathbf{x}, L \mathbf{x}\rangle : \|\mathbf{x}\| = 1\} \)，因此任何单位向量都通过 \( \langle \mathbf{x}, L \mathbf{x}\rangle \) 给出一个下界。在最大度数 \( \bar{\delta} \) 的顶点处取一个合适的测试向量，便得到 \( \mu_n \geq \bar{\delta} + 1 \)<sup>[3](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)</sup>。

## 作为流动算子的拉普拉斯矩阵

拉普拉斯矩阵常被用来表示节点之间量的扩散流动。若 \( x_i \) 是节点 \( i \) 上持有的某种量（比如水）的数量，则 \( L\mathbf{x} \) 的第 \( i \) 个分量等于 \( k_i x_i \)，即从 \( i \) 流出并分配到其 \( k_i \) 个邻居的量，减去 \( \sum_j a_{ij} x_j \)，即沿各条连接边从邻居流入 \( i \) 的量<sup>[8](https://www.philchodrow.prof/intro-networks/chapters/measurement.html)</sup>。

这一解读将该矩阵与其连续情形下的同名对象联系起来。拉普拉斯矩阵是多变量微积分中拉普拉斯算子的离散类比，起着类似的作用：衡量图在一个顶点处的值与其在邻近顶点处的值相差到什么程度<sup>[5](https://mathworld.wolfram.com/LaplacianMatrix.html)</sup>。

## 矩阵树定理

拉普拉斯矩阵出现在基尔霍夫的矩阵树定理中，该定理可追溯至 19 世纪中叶，很可能是有史以来第一种用于计数生成树的方法<sup>[9](https://www.sciencedirect.com/science/article/pii/S0377042726004498)</sup>。该定理指出，\( \det(L_G[i]) \)——即删去拉普拉斯矩阵第 \( i \) 行与第 \( i \) 列后的行列式——给出 \( G \) 中生成树的数目，且对每个 \( i \) 的选择该值都相同<sup>[4](https://people.orie.cornell.edu/dpw/orie6334/Fall2016/lecture6.pdf)</sup>。

基尔霍夫 1847 年的原始工作涉及电网络：他用自己的两条电路定律建立方程，定理即由此推出<sup>[10](https://www.dmg.tuwien.ac.at/gittenberger/Theses/holzer.pdf)</sup>。因此，矩阵树定理中出现的矩阵也被称为基尔霍夫矩阵<sup>[11](https://hrcak.srce.hr/172895)</sup>，而 Wolfram 语言以 `KirchhoffMatrix` 之名实现拉普拉斯矩阵<sup>[5](https://mathworld.wolfram.com/LaplacianMatrix.html)</sup>。

## 归一化变体

除了普通形式（或称组合形式）之外，还有若干归一化版本的拉普拉斯矩阵<sup>[12](https://spectrum.sharetechnote.com/html/Handbook_EngMath_GraphTheory_LaplacianMatrix.html)</sup>。一种对称归一化版本归功于钟（Chung）1997 年关于谱图论的论述，其对角元为 \( 1 \)（度数为零时除外），当 \( i \) 与 \( j \) 相邻时 \( (i,j) \) 元为 \( -1/\sqrt{d_i d_j} \)，否则为 \( 0 \)<sup>[5](https://mathworld.wolfram.com/LaplacianMatrix.html)</sup>。另一种常见选择是 \( D^{-1}L = I - D^{-1}W \)，它引出一个广义特征值问题 \( \lambda D - W \)；在谱聚类的例子中，这种归一化形式的最小特征值与其余特征值分离得比标准拉普拉斯矩阵更好，而所得的聚类结果完全相同<sup>[13](https://people.inf.ethz.ch/~arbenz/ewp/Lnotes/lsevp2010.pdf)</sup>。

当顶点度数差异很大时，归一化至关重要。在由度数变化的模型生成的图中，未归一化的拉普拉斯矩阵不适用于谱聚类；而当图中有许多低度数节点时，归一化拉普拉斯矩阵的集中性很差；针对这种情形，人们提出了一种度数校正的随机游走拉普拉斯矩阵<sup>[14](https://proceedings.mlr.press/v23/chaudhuri12.html)</sup>。使用随机游走拉普拉斯矩阵进行谱嵌入，会产生经过节点度数校正的向量表示，使得度数较高的节点被更准确地嵌入，而嵌入的目标不依赖于度数<sup>[15](https://arxiv.org/abs/2105.00987)</sup>。

## 应用

拉普拉斯矩阵出现在图上随机游走与电网络的分析中，尤其是电阻距离的计算中<sup>[5](https://mathworld.wolfram.com/LaplacianMatrix.html)</sup>。拉普拉斯谱已被应用于随机算法、组合优化问题和机器学习<sup>[16](https://arxiv.org/abs/1111.2897)</sup>。

在机器学习中，随着样本量增大，离散图拉普拉斯矩阵收敛于连续流形拉普拉斯算子，这一收敛性正是降维、半监督学习和谱聚类等基于拉普拉斯矩阵的算法取得成功的依据<sup>[17](https://www.sciencedirect.com/science/article/pii/S1063520306000510)</sup>。若干机器学习任务，包括数据集聚类和图像分割，都可以归结为研究相关图上拉普拉斯矩阵的特征值；通过简单的变分方法计算第一个非平凡特征值及其特征函数是高效的，而计算图的切格常数则是 NP 难的<sup>[18](https://doi.org/10.1016/j.na.2016.07.011)</sup>。

对于有向图，NetworkX 的 `laplacian_matrix` 使用图的出度计算 \( L = D - A \)，入度可通过反转图并转置来获得；对于多重图，边权会被求和<sup>[6](https://networkx.org/documentation/stable/reference/generated/networkx.linalg.laplacianmatrix.laplacian_matrix.html)</sup>。

## References

1. [Laplacian Matrix, in *Graphs and Matrices*, Universitext, Springer (2010)](https://doi.org/10.1007/978-1-84882-981-7_4)
2. [Merris, R. (1994). Laplacian matrices of graphs: a survey. *Linear Algebra and its Applications*](https://www.sciencedirect.com/science/article/pii/0024379594904863)
3. [Roch, S. Spectral graph theory review, Chapter 5, University of Wisconsin–Madison](https://people.math.wisc.edu/~roch/mdp/roch-mdp-review-spectral-chap5.html)
4. [Williamson, D. P. ORIE 6334 Spectral Graph Theory, Lecture 6, Cornell University (2016)](https://people.orie.cornell.edu/dpw/orie6334/Fall2016/lecture6.pdf)
5. [Laplacian Matrix, Wolfram MathWorld](https://mathworld.wolfram.com/LaplacianMatrix.html)
6. [laplacian_matrix, NetworkX 3.7 documentation](https://networkx.org/documentation/stable/reference/generated/networkx.linalg.laplacianmatrix.laplacian_matrix.html)
7. [Martin, K. Graph Theory and Social Networks, University of Oklahoma](https://math.ou.edu/~kmartin/graphs/graphs.pdf)
8. [Chodrow, P. Math 168: Introduction to Networks, Measuring Networks](https://www.philchodrow.prof/intro-networks/chapters/measurement.html)
9. [Matrix-Tree Theorems for complex unit gain networks, *Journal of Computational and Applied Mathematics*](https://www.sciencedirect.com/science/article/pii/S0377042726004498)
10. [Holzer, D. Matrix Tree Theorems, TU Wien](https://www.dmg.tuwien.ac.at/gittenberger/Theses/holzer.pdf)
11. [What Kirchhoff Actually did Concerning Spanning Trees in Electrical Networks, *Croatica Chemica Acta*](https://hrcak.srce.hr/172895)
12. [Laplacian Matrix, ShareTechnote Engineering Math Handbook](https://spectrum.sharetechnote.com/html/Handbook_EngMath_GraphTheory_LaplacianMatrix.html)
13. [Arbenz, P. Lecture Notes on Solving Large Scale Eigenvalue Problems, ETH Zürich](https://people.inf.ethz.ch/~arbenz/ewp/Lnotes/lsevp2010.pdf)
14. [Chaudhuri, K., Chung, F., Tsiatas, A. (2012). Spectral Clustering of Graphs with General Degrees in the Extended Planted Partition Model, COLT](https://proceedings.mlr.press/v23/chaudhuri12.html)
15. [Modell, A., Rubin-Delanchy, P. (2021). Spectral clustering under degree heterogeneity: a case for the random walk Laplacian, arXiv](https://arxiv.org/abs/2105.00987)
16. [Mohar, B. The Laplacian eigenvalues of graphs: a survey, arXiv](https://arxiv.org/abs/1111.2897)
17. [Singer, A. (2006). From graph to manifold Laplacian: The convergence rate, *Applied and Computational Harmonic Analysis*](https://www.sciencedirect.com/science/article/pii/S1063520306000510)
18. [General Cheeger inequalities for p-Laplacians on graphs, *Nonlinear Analysis*](https://doi.org/10.1016/j.na.2016.07.011)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Algebraic combinatorics and graph theory › Spectral graph theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/laplacian-matrix

English original: https://www.edgepedia.org/laplacian-matrix
