# 度（图论）

在图论中，一个顶点的**度**是与它关联的边的数目，也就是以该顶点为端点的边的数目。无向图 \( G = (V, E) \) 中顶点 \( v \) 的度记作 \( \deg(v) \)。<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup> 度是图论中最基本的量之一：它直接通向握手引理、顶点的分类、度序列的研究，以及网络分析中的中心性度量。<sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( v \) 的度是与 \( v \) 关联的边的数目，记作 \( \deg(v) \)；在简单图中它等于邻居的数目 \( \|N(v)\| \)<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup><sup> • </sup><sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup>  |
| 环 | 在多重图或伪图中，\( v \) 处的一个环对 \( \deg(v) \) 贡献 2<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup> |
| 握手引理 | \( \sum_{v \in V} \deg(v) = 2\|E\| \)；它对多重图和伪图同样成立<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup> |
| 奇偶推论 | 每个无向图都有偶数个度为奇数的顶点<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup> |
| 有向图 | 入度计算终止于 \( v \) 的边数，出度计算离开 \( v \) 的边数；每条弧对两个总数各贡献一次<sup>[3](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup> |
| 度序列 | 一个度列表能否由简单图实现，由埃尔德什–加莱定理和哈维尔–哈基米算法判定<sup>[4](https://mathworld.wolfram.com/GraphicSequence.html)</sup> |
| 网络 | 度中心性衡量一个节点的实际连接数占其可能连接数的比例，是最简单的局部中心性度量<sup>[5](https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.centrality.degree_centrality.html)</sup> |

## 定义与术语

若一个顶点是某条边的端点之一，则称该边与该顶点关联；邻接是两个顶点之间的关系，而关联关系是顶点与边之间的关系。<sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup> 在简单图中，每条边连接两个不同的顶点，且任意一对顶点之间至多有一条边，此时 \( v \) 的度等于其邻居的数目，即 \( \deg(v) = \|N(v)\| \)。<sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup> 例如，若 \( E = \{\{a,b\}, \{a,c\}, \{a,d\}, \{b,d\}\} \)，则 \( \deg(a) = 3 \)，\( \deg(b) = 2 \)，\( \deg(c) = 1 \)，\( \deg(d) = 2 \)。<sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup>

特殊的度各有其名。度为 0 的顶点称为孤立顶点，因为它没有任何邻居；度为 1 的顶点称为叶或悬挂顶点。<sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup> 若一个图中每个顶点都有相同的度 \( k \)，则称该图为 \( k \)-正则图。<sup>[6](https://www.math.kit.edu/iag6/lehre/graphtheo2015w/media/lecture_notes.pdf)</sup>

定义取决于什么算作一条边。在多重图中，平行边各自分别计数；而环，即连接一个顶点到自身的边，对该顶点的度贡献 2，因为边的两端各算一次。<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup>

## 握手引理

握手引理（也称度和公式）指出，在每个有限无向图中，所有顶点度数之和等于边数的两倍：<sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup>

\[ \sum_{v \in V(G)} \deg(v) = 2\|E(G)\|. \]

证明是直接计数：每条边 \( e = (v, v') \) 对 \( \deg(v) \) 贡献 1，对 \( \deg(v') \) 贡献 1；而一个环 \( (v, v) \) 对 \( \deg(v) \) 贡献 2，因此所有顶点的度之和是边数的两倍。<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup> 该引理对多重图和伪图同样适用。<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup>

直接的推论是：无向图中度为奇数的顶点有偶数个——度之和为偶数，因此奇数个奇数加项不可能出现。<sup>[1](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)</sup><sup> • </sup><sup>[2](https://tamnd.github.io/brain/write/book/graph/01/2/)</sup> 这一奇偶条件是图存在的必要条件，它用简单的算术就能排除某些构型。一个有 9 个顶点、每个顶点度均为 7 的图，其度之和为 \( 9 \cdot 7 = 63 \)，对应 31.5 条边，这是不可能的。<sup>[7](https://discrete.openmathbooks.org/preview/sec_gt-intro.html)</sup> 同样，不存在 5 个顶点、每个顶点度均为 3 的图，因为那将是五个奇数度，是奇数个。<sup>[8](https://learn.geterdone.io/graphs-and-trees/degree-and-the-handshake-theorem/)</sup>

## 有向图

在有向图（简称 digraph）中，边是有序对，度分为两个量。\( v \) 的入度是终止于 \( v \) 的边的数目，出度是离开 \( v \) 的边的数目。<sup>[9](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/directedgraphs.html)</sup> 每条弧对出度总数恰好贡献一次，对入度总数也恰好贡献一次，因此在任何有向图中，出度之和等于入度之和，且都等于弧的数目。<sup>[3](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup> 从无向的角度看，一个顶点的度等于入度加出度。<sup>[10](https://cs.yale.edu/homes/aspnes/pinewiki/GraphTheory.html)</sup>

## 度序列

一个图的度序列是其所有顶点度数的列表，通常按非递增顺序书写，必要时重复。<sup>[3](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup> 检查度序列可以核对一个图的画法，并初步了解它是什么类型的图。<sup>[3](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)</sup>

并非每个和为偶数的非负整数序列都能作为简单图的度序列出现。哪些序列是可图的，由两个经典结果解决：埃尔德什–加莱定理给出一个刻画，哈维尔–哈基米算法给出一个贪心构造过程，其依据是如下观察：若排序后的序列 \( d_1 \geq d_2 \geq \cdots \geq d_n \) 可实现，则存在一个实现，其中度为 \( d_1 \) 的顶点与接下来的 \( d_1 \) 个顶点相连。<sup>[4](https://mathworld.wolfram.com/GraphicSequence.html)</sup><sup> • </sup><sup>[11](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v17i1r66)</sup> 这两种方法都可推广到有向图，其中有向图的每个顶点带有一对入度和出度。<sup>[11](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v17i1r66)</sup>

## 网络中的度及其应用

在网络科学中，度具有应用意义：在通话图中，它可以表示一个人拥有的手机联系人数量；在引文网络中，它可以表示一篇研究论文获得的引用次数。<sup>[12](https://www.networksciencebook.com/chapter/2)</sup> 作为一种中心性度量，节点 \( v \) 的度中心性是它连接的节点所占的比例，它是一种局部度量，可以从节点的直接邻域计算，而不需要整个网络结构。<sup>[5](https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.centrality.degree_centrality.html)</sup><sup> • </sup><sup>[13](https://arxiv.org/abs/2011.07190)</sup> 它也是仅基于直接邻居数目的最简单、最早的中心性度量。<sup>[14](https://www.sciencedirect.com/science/article/pii/S009630032600024X)</sup>

度在网络中的分布与单个数值同样重要。在埃尔德什–雷尼模型 \( G(n,p) \) 下，每条潜在边独立地以概率 \( p \) 出现，产生二项度分布，当 \( n \) 很大时，它趋近于以平均度 \( \bar{d} = (n-1) \cdot p \) 为中心的泊松分布。<sup>[15](https://anvithpothula.github.io/graph-neural-networks-textbook/chapters/01-intro-to-graphs/)</sup> 而像万维网这样的真实网络则呈现幂律度分布，其中少数高度枢纽与许多低度节点共存；这类网络称为无标度网络。<sup>[16](https://networksciencebook.com/chapter/4)</sup>

度也出现在经典遍历结果中。欧拉关于柯尼斯堡桥问题的判据可推广为：在一个至少有一条边的有限无向图中，欧拉回路——使用每条边恰好一次的闭迹——存在当且仅当每个顶点的度均为偶数，且所有度非零的顶点都位于同一个连通分量中。<sup>[17](https://mathshistory.st-andrews.ac.uk/Strick/Euler.pdf)</sup><sup> • </sup><sup>[23](https://theory.stanford.edu/~trevisan/cs261/lecture03.pdf)</sup> 图论本身可追溯到欧拉 1736 年对该问题的处理，他把柯尼斯堡的各块陆地建模为顶点，把七座桥建模为边。<sup>[18](https://gradebuddy.com/doc/433913/graphs-handout/)</sup> 相比之下，哈密顿圈不存在简单的基于度的刻画，这一对比推动图论走向更深层的结构方法。<sup>[19](https://samcaldwell.net/2024/03/14/the-origins-and-historical-development-of-graph-theory/)</sup>

度中心性作为重要性度量有已知的局限。度中心性高的节点不一定在战略位置上最优；在复杂传染的研究中，度数和介数中心性最高的人，往往并不是传播政治信息和争议新闻时最有影响力的节点。<sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC2875682/)</sup><sup> • </sup><sup>[21](https://www.nature.com/articles/s41467-021-24704-6)</sup> 对数据错误的鲁棒性也各不相同：对于埃尔德什–雷尼网络，度中心性的鲁棒性随平均度增加而降低；而对于巴拉巴西–阿尔伯特图，它则随平均度增加而提高。<sup>[22](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/22CA5DD835436CC39AE0F1620615F588/S2050124220000375a.pdf/on_the_impact_of_network_size_and_average_degree_on_the_robustness_of_centrality_measures.pdf)</sup>

## References

1. [Graphs Handout, CSCE 235, University of Nebraska–Lincoln (Bourke and Choueiry)](https://cse.unl.edu/~choueiry/S06-235/files/Graphs-Handout.pdf)
2. [Chapter 2. Basic Definitions, brain (tamnd)](https://tamnd.github.io/brain/write/book/graph/01/2/)
3. [Chapter 2: An Introduction to Graph Theory, Computing–Maths Summer School, Glasgow Caledonian University](https://edshare.gcu.ac.uk/10582/2/_book/an-introduction-to-graph-theory.html)
4. [Graphic Sequence, Wolfram MathWorld](https://mathworld.wolfram.com/GraphicSequence.html)
5. [degree_centrality, NetworkX 3.7 documentation](https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.centrality.degree_centrality.html)
6. [Lecture Notes, Graph Theory, Karlsruhe Institute of Technology](https://www.math.kit.edu/iag6/lehre/graphtheo2015w/media/lecture_notes.pdf)
7. [Definitions, Discrete Mathematics, OpenMathBooks](https://discrete.openmathbooks.org/preview/sec_gt-intro.html)
8. [Degree and the Handshake Theorem, geterdone.io](https://learn.geterdone.io/graphs-and-trees/degree-and-the-handshake-theorem/)
9. [7.2. Directed Graphs, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/directedgraphs.html)
10. [GraphTheory, James Aspnes, Yale University](https://cs.yale.edu/homes/aspnes/pinewiki/GraphTheory.html)
11. [A Simple Havel-Hakimi Type Algorithm to Realize Graphical Degree Sequences of Directed Graphs, Electronic Journal of Combinatorics](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v17i1r66)
12. [Chapter 2, Network Science by Albert-László Barabási](https://www.networksciencebook.com/chapter/2)
13. [Centrality Measures in Complex Networks: A Survey, arXiv](https://arxiv.org/abs/2011.07190)
14. [Performances and correlations of centrality measures in complex networks, Applied Mathematics and Computation](https://www.sciencedirect.com/science/article/pii/S009630032600024X)
15. [Chapter 1: Introduction to Graphs and Networks, Graph Neural Networks textbook](https://anvithpothula.github.io/graph-neural-networks-textbook/chapters/01-intro-to-graphs/)
16. [Chapter 4, Network Science by Albert-László Barabási](https://networksciencebook.com/chapter/4)
17. [Leonhard Euler, MacTutor History of Mathematics (Strick)](https://mathshistory.st-andrews.ac.uk/Strick/Euler.pdf)
18. [CSCE 235 Graphs Handout, GradeBuddy transcription](https://gradebuddy.com/doc/433913/graphs-handout/)
19. [The Origins and Historical Development of Graph Theory, Sam Caldwell](https://samcaldwell.net/2024/03/14/the-origins-and-historical-development-of-graph-theory/)
20. [How Correlated Are Network Centrality Measures?, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC2875682/)
21. [Topological measures for identifying and predicting the spread of complex contagions, Nature Communications](https://www.nature.com/articles/s41467-021-24704-6)
22. [On the impact of network size and average degree on the robustness of centrality measures, Network Science 9 (S1): S61–S82](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/22CA5DD835436CC39AE0F1620615F588/S2050124220000375a.pdf/on_the_impact_of_network_size_and_average_degree_on_the_robustness_of_centrality_measures.pdf)
23. [theory.stanford.edu](https://theory.stanford.edu/~trevisan/cs261/lecture03.pdf)

---
*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 invariants and parameters › Degree-based invariants

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/degree-graph-theory

English original: https://www.edgepedia.org/degree-graph-theory
