# 围长（图论）

在图论中，图的**围长**（girth）是其最短圈的长度，以该圈所含边的数目计量。<sup>[1](https://roam.libraries.psu.edu/system/files/e-books/MATH485-Graph_Theory.pdf)</sup> 除非另有说明，这一术语适用于有限、简单、无向图。<sup>[2](https://www.sciencedirect.com/science/article/pii/S1574013725001340)</sup> 围长刻画了一个图在局部上有多像树：围长大意味着不存在短圈。<sup>[3](https://tamnd.github.io/brain/write/book/graph/01/7/)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 至少含有一个圈的图，其围长是最短圈的长度（边数）<sup>[1](https://roam.libraries.psu.edu/system/files/e-books/MATH485-Graph_Theory.pdf)</sup> |
| 无圈情形的约定 | 不含圈的图，有些文献把围长定为 0，另一些则定为 \( \infty \)<sup>[1](https://roam.libraries.psu.edu/system/files/e-books/MATH485-Graph_Theory.pdf)</sup><sup> • </sup><sup>[3](https://tamnd.github.io/brain/write/book/graph/01/7/)</sup> |
| 最小值 | 在简单图中，可能的最短圈长度为 3，即三角形；长度 1 和 2 不可能，因为自环与平行边被排除在外<sup>[3](https://tamnd.github.io/brain/write/book/graph/01/7/)</sup> |
| Moore 界 | 围长为 g 的 k-正则图至少有 M(k, g) 个顶点，该界依赖于 g 的奇偶性；达到该界的图称为 Moore 图<sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> |
| 笼 | (k,g)-笼 是围长为 g、顶点数尽可能少的 k-正则图；其存在性最早由萨克斯证明<sup>[5](https://www.sciencedirect.com/science/article/pii/S0166218X15001699)</sup><sup> • </sup><sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> |
| 埃尔德什定理 | 对任意 k 与 l，都存在围长大于 l 且色数至少为 k 的图，1959 年用概率方法给出证明<sup>[6](https://aco.gatech.edu/sites/default/files/documents/r-wang-thesis.pdf)</sup><sup> • </sup><sup>[7](https://people.maths.ox.ac.uk/~scott/Papers/icmpaper.pdf)</sup> |
| 编码应用 | LDPC 码的 Tanner 图中的短圈会损害迭代译码，因此各种构造都力求围长尽可能大<sup>[8](https://yairmz.github.io/LDPC/ldpc_overview/representation.html)</sup> |

## 定义与基本例子

圈是一条闭途径，其中除起点与终点重合外没有顶点重复，其长度为所含边的数目。<sup>[3](https://tamnd.github.io/brain/write/book/graph/01/7/)</sup> 围长是所有圈的长度中的最小值。三角形的围长为 3，不含对角线的四边形的围长为 4，而树不含圈，在采用 \( \infty \) 约定时围长为无穷大。<sup>[3](https://tamnd.github.io/brain/write/book/graph/01/7/)</sup> 宾夕法尼亚州立大学的讲义则把无圈图的围长定为 0，可见各文献的约定并不一致。<sup>[1](https://roam.libraries.psu.edu/system/files/e-books/MATH485-Graph_Theory.pdf)</sup>

佩特森图（Petersen graph）是 \( 3^2 + 1 = 10 \) 个顶点上的 3-正则图，围长为 5，是一个 Moore 图。<sup>[9](https://www.math.cmu.edu/users/mtait/21-301Fall2017/Notes.pdf)</sup> 完全图 \( K_m \)、完全二部图 \( K_{m,n} \) 与圈 \( C_n \) 的围长是标准习题；\( C_n \) 本身的围长就是 n。<sup>[10](https://sde.uoc.ac.in/sites/default/files/sde_videos/VI%20Sem.%20B.Sc%20Maths%20-%20Elective%20Course%20-%20Graph%20Theory.pdf)</sup>

不含弦的圈称为诱导圈或无弦圈，这一概念是弦图与完美图研究的核心。<sup>[3](https://tamnd.github.io/brain/write/book/graph/01/7/)</sup>

## 围长、二部性与色数

围长与着色之间有着引人注目的相互作用。一个图是二部图，当且仅当它不含奇长度的圈；因此围长至少为 4（不含三角形）的图仍可能含有偶圈，而奇围长很大的图则趋近于二部图。<sup>[11](https://www.cs.auckland.ac.nz/textbookCS220/ebook/DGW2.pdf)</sup>

**大围长与大色数。** 人们或许以为，禁止短圈会迫使色数变小，但事实并非如此。在概率方法于图论中最早的应用之一里，保罗·埃尔德什（Paul Erdős）于 1959 年证明：存在围长与色数都任意大的图。具体来说，在 n 个顶点、边概率为 (log n)/n 的随机图中，一阶矩论证表明只有 o(n) 个顶点落在短圈上，而每个独立集的大小都是 o(n)；删去短圈上的顶点，便得到所需的图。<sup>[7](https://people.maths.ox.ac.uk/~scott/Papers/icmpaper.pdf)</sup> 这一证明是非构造性的；第一个显式构造由拉斯洛·洛瓦兹（László Lovász）于 1968 年给出，雅罗斯拉夫·内谢特日尔（Jaroslav Nešetřil）与沃伊捷赫·勒德尔（Vojtěch Rödl）则在 1979 年给出了一个简单的构造，两者都基于超图。<sup>[6](https://aco.gatech.edu/sites/default/files/documents/r-wang-thesis.pdf)</sup>

更早的时候，扬·米切尔斯基（Jan Mycielski）给出了一个构造性证明：对每个正整数 k，都存在无三角形的 k-色图；而标准的移位图无三角形，当 n ≥ 5 时围长为 4，且色数无界。<sup>[12](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-3.pdf)</sup><sup> • </sup><sup>[22](https://www.fields.utoronto.ca/programs/scientific/11-12/constraint/summerschool/nesetril.pdf)</sup> 反过来，大围长、大色数图的存在表明，禁止任何单个含圈的诱导子图都不足以限制色数；贾尔法什–萨姆纳猜想（Gyárfás–Sumner conjecture）中真正有趣的情形，涉及的则是禁止森林。<sup>[7](https://people.maths.ox.ac.uk/~scott/Papers/icmpaper.pdf)</sup>

## 极值问题：Moore 界与笼

把 Moore 界反过来用：围长为 g 的 k-正则图（称为 (k,g)-图）至少有 M(k, g) 个顶点，其值由计数与给定顶点（当 g 为偶数时则与给定边）距离不超过 \( \lfloor (g-1)/2 \rfloor \) 的顶点得到。<sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> 达到该界的图称为 Moore 图，而它们十分稀少：度数为 k、围长为 g 的 Moore 图只存在于以下情形——圈（k = 2）、完全图（g = 3）、完全二部图（g = 4）、围长为 5 且 k = 2, 3, 7（可能还有 k = 57），以及由阶为 k − 1 的对称广义 n-边形产生的围长 6、8 或 12。<sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> 围长为 5 的情形分别是 5-圈、佩特森图与霍夫曼–辛格尔顿图（Hoffman–Singleton graph）。<sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup>

由于 Moore 图并非对一切参数都存在，核心问题便是确定 n(k, g)，即 (k,g)-图的最小阶数；达到这一最小值的图称为 (k,g)-笼。<sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> 对每一对 (k, g) 都存在笼，这一点最早由 H. 萨克斯（H. Sachs）于 1963 年证明：他证明，对任意正整数 k 与 g，都存在一个围长为 g 的 k-正则哈密顿图，其最短圈（腰圈）构成一个 2-因子。<sup>[5](https://www.sciencedirect.com/science/article/pii/S0166218X15001699)</sup><sup> • </sup><sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> 几乎紧接着，埃尔德什与萨克斯用非构造性的归纳法改进了给定围长的正则图的最小顶点数的上界。<sup>[5](https://www.sciencedirect.com/science/article/pii/S0166218X15001699)</sup><sup> • </sup><sup>[4](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)</sup> 对于偶围长，只有当相关参数 q 是素数幂时，笼才能达到 Moore 界，而且这样的笼是二部图。<sup>[5](https://www.sciencedirect.com/science/article/pii/S0166218X15001699)</sup>

## 拉姆齐理论

围长拉姆齐定理由汉堡大学数学家克里斯蒂安·赖赫尔（Christian Reiher）与埃默里大学的沃伊捷赫·勒德尔于 2023 年证明。该定理断言：给定超图 F 与颜色数 r，存在一个具有相同围长的超图 H，满足 \( H \longrightarrow (F)_r \)，即 H 的任意 r-着色都含有 F 的单色副本；此外，对每个线性超图 F，都存在一个拉姆齐超图 H，它在局部上看起来像由 F 的副本构成的森林。<sup>[13](https://arxiv.org/abs/2308.15589)</sup> 证明是对围长 g 作归纳，用的是内谢特日尔与勒德尔的分部构造法；而此前尚未解决的最小情形——把围长 4 的图定理推广到 3-一致超图——其复杂程度与完整证明大致相当。<sup>[14](https://wwwp2.math.uni-hamburg.de/en/personen/reiher/artikel/girth-final.pdf)</sup> 赖赫尔 2024 年的综述《大围长的图》把这一主题中 Moore 界的一侧与拉姆齐理论的一侧视为两个独立的部分。<sup>[2](https://www.sciencedirect.com/science/article/pii/S1574013725001340)</sup>

## 编码理论中的应用

在低密度奇偶校验（LDPC）码的 Tanner 图中，围长是最小圈的长度，而短圈会降低迭代译码器的译码性能。<sup>[8](https://yairmz.github.io/LDPC/ldpc_overview/representation.html)</sup> R. 迈克尔·坦纳（R. Michael Tanner）在 1981 年那篇关于递归低复杂度码的论文中引入了 Tanner 码，他用底层图的围长来界定所得码的距离。<sup>[15](https://users.math.msu.edu/users/iwenmark/Teaching/MTH810/web-coding-book2.pdf)</sup><sup> • </sup><sup>[16](https://dblp.dagstuhl.de/rec/journals/tit/Tanner81.html)</sup> 因此各种构造方法都以大围长为目标：渐进边增长（PEG）算法逐条添加边来构建 Tanner 图，以使围长尽可能大；对于准循环 LDPC 码，则存在充要条件，用校验矩阵与其转置之积的幂来刻画一个 Tanner 图是否具有 6 到 12 之间的某个给定围长。<sup>[17](https://www.sciencedirect.com/topics/engineering/tanner-graph)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2105.03462)</sup>

## 围长的计算

一种自然的算法是从每个顶点出发作广度优先搜索，报告经过该顶点的最短圈，再对所有顶点取最小值；而朴素的深度优先搜索做法可能失效：即使存在 4-圈，也只会找到更长的圈。<sup>[11](https://www.cs.auckland.ac.nz/textbookCS220/ebook/DGW2.pdf)</sup> 对特殊图类存在更快的方法：n 个顶点的无权无向平面图的围长可在 O(n) 时间内算出，这改进了一系列早先的界，它们的时间分别为 \( O(n^{5/4} \log n) \)、\( O(n \log^2 n) \) 与 \( O(n \log n) \)。<sup>[19](https://arxiv.org/abs/1104.4892)</sup> 对一般带权无向图，卡德里亚（Kadria）、罗迪蒂（Roditty）、西德福德（Sidford）、瓦西列夫斯卡·威廉姆斯（Vassilevska Williams）与兹维克（Zwick）的算法可在 \( O(k n^{1+1/k} \log n + m(k + \log n)) \) 期望时间内找到一个长度不超过 \( (4k/3) \cdot g \) 的圈，其中 g 为围长。<sup>[20](https://epubs.siam.org/doi/10.1137/25M1780286)</sup> 在分布式环境下，也有快速算法计算或近似围长，包括拥塞团（Congested Clique）模型中的常数轮加性 +1 近似。<sup>[21](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.DISC.2020.33)</sup>

## References

1. [Definition 2.21 (Girth), Penn State Math 485 Lecture Notes](https://roam.libraries.psu.edu/system/files/e-books/MATH485-Graph_Theory.pdf)
2. [Christian Reiher (2025). Graphs of large girth. Computer Science Review.](https://www.sciencedirect.com/science/article/pii/S1574013725001340)
3. [Chapter 7: Cycles and Circuits, tamnd/brain](https://tamnd.github.io/brain/write/book/graph/01/7/)
4. [Dynamic Survey DS16: Cages, Electronic Journal of Combinatorics (2008)](https://www.combinatorics.org/files/Surveys/ds16/ds16v1-2008.pdf)
5. [On a conjecture on the order of cages with a given girth pair, Discrete Mathematics](https://www.sciencedirect.com/science/article/pii/S0166218X15001699)
6. [R.-W. Wang thesis, Georgia Tech (graphs of large girth and chromatic number)](https://aco.gatech.edu/sites/default/files/documents/r-wang-thesis.pdf)
7. [Alex Scott. Graphs of large chromatic number (ICM survey)](https://people.maths.ox.ac.uk/~scott/Papers/icmpaper.pdf)
8. [LDPC Codes: Representation (Tanner graph girth)](https://yairmz.github.io/LDPC/ldpc_overview/representation.html)
9. [21-301 Fall 2017 Notes, Carnegie Mellon University (Moore bound)](https://www.math.cmu.edu/users/mtait/21-301Fall2017/Notes.pdf)
10. [Graph Theory exercise sheet, University of Calicut](https://sde.uoc.ac.in/sites/default/files/sde_videos/VI%20Sem.%20B.Sc%20Maths%20-%20Elective%20Course%20-%20Graph%20Theory.pdf)
11. [DGW2 textbook, University of Auckland CS220 (Cycles, Section 5.8)](https://www.cs.auckland.ac.nz/textbookCS220/ebook/DGW2.pdf)
12. [Bondy–Murty GT notes 14.3: Girth and Chromatic Number, ETSU](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-3.pdf)
13. [Christian Reiher, Vojtěch Rödl (2023). The girth Ramsey theorem. arXiv:2308.15589.](https://arxiv.org/abs/2308.15589)
14. [The Girth Ramsey Theorem (full text), Universität Hamburg](https://wwwp2.math.uni-hamburg.de/en/personen/reiher/artikel/girth-final.pdf)
15. [Coding theory book chapter on Tanner codes (MSU hosting)](https://users.math.msu.edu/users/iwenmark/Teaching/MTH810/web-coding-book2.pdf)
16. [dblp: R. Michael Tanner, A recursive approach to low complexity codes (1981)](https://dblp.dagstuhl.de/rec/journals/tit/Tanner81.html)
17. [Tanner Graph overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/engineering/tanner-graph)
18. [Necessary and Sufficient Girth Conditions for Tanner Graphs of Quasi-Cyclic LDPC Codes. arXiv:2105.03462.](https://arxiv.org/abs/2105.03462)
19. [Hsien-Chih Chang, Hsueh-I Lu. Computing the Girth of a Planar Graph in Linear Time. arXiv:1104.4892; SICOMP 42(3), 2013.](https://arxiv.org/abs/1104.4892)
20. [Kadria, Roditty, Sidford, Vassilevska Williams, Zwick. Improved Girth Approximation in Weighted Undirected Graphs. SIAM Journal on Computing.](https://epubs.siam.org/doi/10.1137/25M1780286)
21. [Fast Distributed Algorithms for Girth, Cycles and Small Subgraphs, DISC 2020](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.DISC.2020.33)
22. [fields.utoronto.ca](https://www.fields.utoronto.ca/programs/scientific/11-12/constraint/summerschool/nesetril.pdf)

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

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