# 顶点（图论）

在图论中，顶点（复数：vertices，也称节点）是构成图的离散对象之一；顶点之间通过边两两相连，而其他所有图论概念——从度到连通性再到着色——都以顶点为基础来定义。<sup>[1](https://mathworld.wolfram.com/Vertex.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/contemporary-mathematics/pages/12-1-graph-basics)</sup>

| 关键事实 | 详情 |
|---|---|
| 形式角色 | 图是顶点集 \( V \) 与边集 \( E \) 构成的二元组 \( G = (V, E) \)，其中每条边是一对顶点；顶点数 \( |V| \) 称为图的阶<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup><sup> • </sup><sup>[4](https://discrete.openmathbooks.org/pdfs/dmoi4.pdf)</sup> |
| 度 | 一个顶点的度是与它关联的边数；自环对其顶点的度贡献为2<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup> |
| 握手引理 | 对于有 \( m \) 条边的图，\( \sum_{v \in V} \deg(v) = 2m \)，因此每个图都有偶数个奇度顶点<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup> |
| 历史起源 | 欧拉1736年对柯尼斯堡七桥问题的解答将每块陆地建模为一个顶点、每座桥建模为一条边，由此创立了图论<sup>[5](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)</sup> |
| 欧拉判据 | 连通图存在欧拉回路当且仅当每个顶点的度均为偶数；柯尼斯堡的图有四个奇度顶点，因此这样的走法不可能存在<sup>[6](https://www.whitman.edu/mathematics/cgt_online/book/section05.02.html)</sup><sup> • </sup><sup>[7](https://eulerus.university/research/)</sup> |
| 计算 | 在NetworkX等软件库中，节点可以是除None之外的任何可哈希Python对象，并可带有可选的键/值属性<sup>[8](https://networkx.org/documentation/stable/reference/classes/digraph.html)</sup> |

## 定义与形式框架

图 \( G = (V, E) \) 由一个顶点集 \( V \) 和一个边集 \( E \) 组成，其中每条边是顶点的一个无序对，如 \( \{u, v\} \)。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup> 集合 \( V \) 可以是任意离散元素的汇集，通常是自然数的一个子集，而整个图由这两个集合决定：同一个图可以画成许多视觉上不同的样子，因为重要的只是哪些顶点相连，而非连接如何画出。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup><sup> • </sup><sup>[2](https://openstax.org/books/contemporary-mathematics/pages/12-1-graph-basics)</sup>

若干术语描述了顶点在这一结构中的位置。由一条边相连的两个顶点是相邻的，该边称为与其两个端点关联；顶点 \( v \) 的邻域 \( N(v) \) 是与它相邻的所有顶点构成的集合。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup><sup> • </sup><sup>[9](https://www.personal.kent.edu/~rmuhamma/GraphTheory/MyGraphTheory/defEx.htm)</sup> 在简单图中，任意两个顶点之间至多有一条边，且没有顶点到自身的边；多重图则允许同一对顶点之间有多条边以及自环——即连接一个顶点到自身的边。<sup>[2](https://openstax.org/books/contemporary-mathematics/pages/12-1-graph-basics)</sup> 欧拉的柯尼斯堡模型中有两块陆地由不止一座桥相连，在严格的基于集合的定义下，它是多重图而非简单图。<sup>[10](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/11%3A_Basics_of_Graph_Theory/11.02%3A_Basic_Definitions_Terminology_and_Notation)</sup>

## 顶点的度

顶点 \( v \) 的度，记作 \( \deg(v) \)，是与它关联的边数，也称价数或局部度。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup><sup> • </sup><sup>[11](https://mathworld.wolfram.com/VertexDegree.html)</sup> 自环计为两次，因为该顶点同时作为这条边的两个端点出现。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup> 图 \( G \) 所有顶点中的最小度和最大度分别记作 \( \delta(G) \) 和 \( \Delta(G) \)，所有顶点度的有序列表称为度序列。<sup>[11](https://mathworld.wolfram.com/VertexDegree.html)</sup><sup> • </sup><sup>[12](https://math.mit.edu/research/highschool/primes/circle/documents/2019/Berdichevsky_Mulvey_2019.pdf)</sup>

度的概念导出了图论最古老的结果之一——握手引理：每条边对其两个端点各自的度贡献一，因此对于有 \( m \) 条边的图，

\[ \sum_{v \in V} \deg(v) = 2m. \]

由于左侧将每条边计算了两次，总和总是偶数，这立即推出每个图都有偶数个奇度顶点。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup><sup> • </sup><sup>[12](https://math.mit.edu/research/highschool/primes/circle/documents/2019/Berdichevsky_Mulvey_2019.pdf)</sup>

## 特殊类型的顶点

术语按度和结构角色区分出若干类顶点：

- 孤立顶点度为0，没有关联边。<sup>[13](https://www.uoanbar.edu.iq/eStoreImages/Bank/17560.pdf)</sup>
- 悬挂顶点（或端点）度为1。<sup>[13](https://www.uoanbar.edu.iq/eStoreImages/Bank/17560.pdf)</sup><sup> • </sup><sup>[10](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/11%3A_Basics_of_Graph_Theory/11.02%3A_Basic_Definitions_Terminology_and_Notation)</sup>
- 割点是这样一个顶点：移除它以及经过它的边会使图不连通。<sup>[14](https://edshare.gcu.ac.uk/4717/2/index.html)</sup>
- 在有向图中，每个顶点有入度和出度，分别计算入边和出边。<sup>[8](https://networkx.org/documentation/stable/reference/classes/digraph.html)</sup>

连通性本身也是通过顶点来定义的：当从每个顶点到其他每个顶点都存在路径时，图是连通的；顶点 \( v \) 的连通分量是由从 \( v \) 可达的所有顶点诱导出的子图。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup>

## 历史起源：欧拉与柯尼斯堡

顶点概念可追溯到莱昂哈德·欧拉（Leonhard Euler）1736年对柯尼斯堡七桥问题的解答。该城位于普雷格尔河（Pregel）两岸及两座岛上，七座桥连接着四块陆地，居民们想知道是否存在一种走法，能恰好经过每座桥一次并回到起点。<sup>[14](https://edshare.gcu.ac.uk/4717/2/index.html)</sup><sup> • </sup><sup>[5](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)</sup> 欧拉将每块陆地区域替换为一个顶点，将每座桥替换为连接相应顶点的一条边，从而把一个关于真实城市的拓扑问题归结为节点与边的抽象结构；这通常被视为图论的创立。<sup>[5](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)</sup><sup> • </sup><sup>[7](https://eulerus.university/research/)</sup>

他的判据是用顶点来表述的。连通图包含欧拉回路——一条恰好使用每条边一次的闭迹——当且仅当每个顶点的度均为偶数；原因在于，每当走法在遍历途中经过一个顶点，必须有一条边进入、另一条边离开。<sup>[6](https://www.whitman.edu/mathematics/cgt_online/book/section05.02.html)</sup><sup> • </sup><sup>[15](https://webserv.jcu.edu/math/Vignettes/bridges.htm)</sup> 对于非闭合的欧拉迹，恰好可以有两个奇度顶点，即走法的起点和终点。<sup>[15](https://webserv.jcu.edu/math/Vignettes/bridges.htm)</sup> 柯尼斯堡的图有四个奇度顶点，因此这样的走法不存在，欧拉证明了城中的任何走法都至少必须重复经过一座桥。<sup>[7](https://eulerus.university/research/)</sup><sup> • </sup><sup>[16](https://engines.egr.uh.edu/episode/2467)</sup> 欧拉将这篇论文呈现为对莱布尼茨（Leibniz）所称“位置几何”（geometria situs）的贡献。<sup>[17](https://academic.oup.com/book/45622/chapter-abstract/394863558)</sup>

“图”这个词本身出现得更晚：詹姆斯·约瑟夫·西尔维斯特（James Joseph Sylvester）于1878年引入该术语，指的是展示分子中的化学键与数学不变量的图形表示之间类比关系的图示。<sup>[18](https://www.tbi.univie.ac.at/papers/Abstracts/pmg_diss.pdf)</sup> 西尔维斯特与阿瑟·凯莱（Arthur Cayley）还通过确立化学分子结构与数学图之间存在同构——原子为顶点、键为边——奠定了化学图论的基础。<sup>[19](https://www.sciencedirect.com/science/article/pii/0166128089850031)</sup>

## 计算与应用中的顶点

在计算机科学中，顶点是图数据结构所存储的主要对象。两种标准表示法都围绕它们组织内存：邻接矩阵是一个 \( |V| \times |V| \) 的表，其条目 \( (i, j) \) 记录顶点 \( i \) 与 \( j \) 之间的连接，无论存在多少条边都耗费 \( |V|^{2} \) 个单元；而邻接表为每个顶点只存储实际出现的边，适合稀疏图。<sup>[5](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)</sup><sup> • </sup><sup>[20](https://opendsa-server.cs.vt.edu/ODSA/Books/jmu/cs240/fall-2018/Sections_1_and_2/html/GraphIntro.html)</sup> 顶点的度从矩阵表示中自然得出，即一行或一列之和，\( \deg(v_i) = \sum_j A_{ij} \)。<sup>[5](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)</sup>

现代图库扩展了可用作顶点的对象范围。在NetworkX中，节点可以是除None之外的任何可哈希Python对象，包括字符串、整数甚至另一个图，节点和边都可以携带键/值属性，如权重或标签。<sup>[8](https://networkx.org/documentation/stable/reference/classes/digraph.html)</sup>

什么算作一个顶点，这本身就是网络科学中的建模决策。研究社交网络、通信网络或生物系统的分析者必须决定哪些实体成为节点、哪些关系成为边，这一选择塑造了所有下游结果；将网络变换为其线图——边成为顶点——会显著改变网络的性质。<sup>[21](https://www.nature.com/articles/s41467-022-34267-9)</sup> 在机器学习中，图神经网络将顶点视为携带特征向量的实体，通过在相邻节点之间传递信息来学习图上的函数，应用范围从交通预测到分子性质预测。<sup>[22](https://www.nature.com/articles/s43586-024-00294-7)</sup>

## 顶点概念为何重要

欧拉的抽象展示了顶点的分析力量：一个关于在真实城市中行走的棘手问题变成了对顶点度数奇偶性的简单检验，而同样的判据可以回答任何网络上任何类似的路径问题。<sup>[5](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)</sup><sup> • </sup><sup>[15](https://webserv.jcu.edu/math/Vignettes/bridges.htm)</sup> 握手引理给出了第二个例子，说明顶点层面的推理可以产生全局性后果：由于度之和必为偶数，奇度顶点数的奇偶性在每个图中都是固定的，这一约束构成了图论中诸多存在性论证的基础。<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)</sup> 同样的抽象如今构成了各科学领域网络模型的基础，在其中，界定节点是什么被视为一项核心的理论行为，而非机械的步骤。<sup>[21](https://www.nature.com/articles/s41467-022-34267-9)</sup>

## References

1. [Vertex, Wolfram MathWorld](https://mathworld.wolfram.com/Vertex.html)
2. [12.1 Graph Basics, Contemporary Mathematics, OpenStax](https://openstax.org/books/contemporary-mathematics/pages/12-1-graph-basics)
3. [7.1. Graphs, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter7/graphs.html)
4. [Discrete Mathematics: An Open Introduction, 4th edition, Oscar Levin](https://discrete.openmathbooks.org/pdfs/dmoi4.pdf)
5. [Basic graph theory, MIT 18.S995 lecture notes](https://math.mit.edu/~dunkel/Teach/18.S995_2017F/slides/lec26_GraphBasics.pdf)
6. [5.2 Euler Circuits and Walks, Whitman College, College Graph Theory](https://www.whitman.edu/mathematics/cgt_online/book/section05.02.html)
7. [Research & The Königsberger Bridges Institute, Eulerus Universität Königsberg](https://eulerus.university/research/)
8. [DiGraph, NetworkX 3.7 documentation](https://networkx.org/documentation/stable/reference/classes/digraph.html)
9. [Graph Theory definitions, Kent State](https://www.personal.kent.edu/~rmuhamma/GraphTheory/MyGraphTheory/defEx.htm)
10. [11.2: Basic Definitions, Terminology, and Notation, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Combinatorics_%28Morris%29/03%3A_Graph_Theory/11%3A_Basics_of_Graph_Theory/11.02%3A_Basic_Definitions_Terminology_and_Notation)
11. [Vertex Degree, Wolfram MathWorld](https://mathworld.wolfram.com/VertexDegree.html)
12. [Introduction to Graphs, MIT PRIMES Circle (Berdichevsky & Mulvey, 2019)](https://math.mit.edu/research/highschool/primes/circle/documents/2019/Berdichevsky_Mulvey_2019.pdf)
13. [Introduction to Graphs, University of Anbar course materials](https://www.uoanbar.edu.iq/eStoreImages/Bank/17560.pdf)
14. [Introduction to Graph Theory Pt 1, Glasgow Caledonian University](https://edshare.gcu.ac.uk/4717/2/index.html)
15. [Graph Theory and the Bridges of Königsberg, John Carroll University](https://webserv.jcu.edu/math/Vignettes/bridges.htm)
16. [Graph Theory, The Engines of Our Ingenuity, University of Houston](https://engines.egr.uh.edu/episode/2467)
17. [Euler and the Bridges of Königsberg, in Jesper Lützen, A History of Mathematical Impossibility, Oxford University Press, 2023](https://academic.oup.com/book/45622/chapter-abstract/394863558)
18. [Introduction, dissertation, University of Vienna (term graph introduced by Sylvester 1878)](https://www.tbi.univie.ac.at/papers/Abstracts/pmg_diss.pdf)
19. [The pioneering contributions of Cayley and Sylvester to the mathematical description of chemical structure, Journal of Molecular Structure: THEOCHEM](https://www.sciencedirect.com/science/article/pii/0166128089850031)
20. [17.1. Graphs Chapter Introduction, JMU CS240, OpenDSA](https://opendsa-server.cs.vt.edu/ODSA/Books/jmu/cs240/fall-2018/Sections_1_and_2/html/GraphIntro.html)
21. [Statistical inference links data and theory in network science, Nature Communications (2022)](https://www.nature.com/articles/s41467-022-34267-9)
22. [Graph neural networks, Nature Reviews Methods Primers (2024)](https://www.nature.com/articles/s43586-024-00294-7)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; 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/vertex-graph-theory

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