# 色多项式

图 G 的色多项式是多项式 P(G, x)，它在任意非负整数 k 处的值等于 G 用 k 种颜色进行正常着色的数目，亦即给每个顶点分配 k 种颜色之一、使相邻顶点获得不同颜色的方法数。<sup>[1](https://bura.brunel.ac.uk/bitstream/2438/3067/1/equivalencecpcrevised.pdf)</sup> 它由乔治·D·伯克霍夫（George D. Birkhoff）于 1912 年引入，作为攻克四色问题的一个工具；四色问题等价于断言：对每个无环平面图 G，都有 P(G, 4) > 0。<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup><sup> • </sup><sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup> 色数 χ(G) 可从该多项式求得：它是使 P(G, k) > 0 的最小整数 k。<sup>[4](https://www.mimuw.edu.pl/~aszek/chromatic/lec7.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 对每个非负整数 k，P(G, k) 计数正常 k-着色；χ(G) = min{k : P(G, k) > 0}<sup>[1](https://bura.brunel.ac.uk/bitstream/2438/3067/1/equivalencecpcrevised.pdf)</sup><sup> • </sup><sup>[4](https://www.mimuw.edu.pl/~aszek/chromatic/lec7.pdf)</sup> |
| 基本形式 | n 个顶点的空图：k^n；n 个顶点的树：k(k−1)^(n−1)；完全图 K_n：k(k−1)···(k−n+1)<sup>[5](https://math.mit.edu/~apost/courses/18.204_2018/Julie_Zhang_paper.pdf)</sup> |
| 结构 | 次数为 n，首项系数为 1，常数项为 0，整系数且符号交替；x^(n−1) 的系数为 −m，其中 m 为边数<sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup> |
| 递推 | 对任意边 e，P(G) = P(G−e) − P(G/e)（删除–收缩）<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup> |
| 整数根 | 0, 1, …, χ(G)−1 都是根，且 χ(G) 是第一个不是根的正整数<sup>[7](https://iuuk.mff.cuni.cz/~andrew/VKKI.pdf)</sup> |
| 复杂度 | 对一般图精确计算是 #P-困难的，甚至在大多数求值点上近似也是 #P-困难的<sup>[8](https://link.springer.com/article/10.1007/s00037-023-00247-8)</sup> |
| Tutte/Potts | P(G, x) = (−1)^(|V|−c(G)) x^(c(G)) T_G(1−x, 0)；等价地 P_G(q) = Z_G(q, −1)，即零温反铁磁 Potts 配分函数<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup><sup> • </sup><sup>[9](https://ar5iv.labs.arxiv.org/html/math/0503607)</sup> |

## 定义与基本例子

对正整数 k，正常 k-着色是从顶点集到 {1, …, k} 的映射 f，使得只要 x 与 y 相邻，就有 f(x) ≠ f(y)。<sup>[10](https://math.nie.edu.sg/fmdong/Research/articles/proof%20of%20a%20chromatic%20polynomial%20conjecture.pdf)</sup> 色多项式 P(G, x) 是一个多项式，它在每个非负整数 x 处与着色计数一致。<sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup>

基本图族具有封闭形式：<sup>[5](https://math.mit.edu/~apost/courses/18.204_2018/Julie_Zhang_paper.pdf)</sup>

- n 个顶点的空图：P = k^n，因为每个顶点独立着色。
- n 个顶点的树：P = k(k−1)^(n−1)。<sup>[11](https://math.uchicago.edu/~michaelklug/ReadChromatic.pdf)</sup>
- 完全图 K_n：P = k(k−1)(k−2)···(k−n+1)，即下降阶乘，因为所有顶点两两相邻。
- 圈 C_n：(k−1)^n + (−1)^n (k−1)，这可由圈的多变量 Tutte 公式 Z_{C_n}(q, v) = Π(q+v_e) + (q−1)Π v_e 取所有 v_e = −1 得到。<sup>[9](https://ar5iv.labs.arxiv.org/html/math/0503607)</sup>

对不连通图，多项式分解：不交并的色多项式是各连通分支多项式之积，因为各分支独立着色。<sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup> 计算实例展示了符号交替结构：圈 C_4 的多项式为 x^4 − 4x^3 + 6x^2 − 3x，C_5 分解为 (x−2)(x−1)x(x^2−2x+2)，3-立方体的多项式为 x^8 − 12x^7 + 66x^6 − 214x^5 + 441x^4 − 572x^3 + 423x^2 − 133x。<sup>[12](https://passagemath.org/docs/latest/html/en/reference/graphs/sage/graphs/chrompoly.html)</sup> 彼得森图的多项式为 x^10 − 15x^9 + 105x^8 − 455x^7 + 1353x^6 − 2861x^5 + 4275x^4 − 4305x^3 + 2606x^2 − 704x，在 x = 3 处求值得到 120 种正常 3-着色。<sup>[12](https://passagemath.org/docs/latest/html/en/reference/graphs/sage/graphs/chrompoly.html)</sup>

## 基本性质

每个色多项式都满足固定的结构轮廓。对 n 个顶点的无环图 G，P(G, x) 的次数为 n，首项系数为 1，常数项为 0，整系数且符号交替；x^(n−1) 的系数等于负的边数 m。<sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup><sup> • </sup><sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup> 整数根完全由色数决定：整数 0, 1, …, χ(G)−1 全是根，χ(G) 是第一个不是根的正整数，且没有负整数根。<sup>[7](https://iuuk.mff.cuni.cz/~andrew/VKKI.pdf)</sup><sup> • </sup><sup>[9](https://ar5iv.labs.arxiv.org/html/math/0503607)</sup> 特别地，0 是 1 以下唯一的实根。<sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup>

该多项式还具有着色之外的组合求值。<sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup>

**什么样的多项式才是色多项式？** 罗纳德·里德（Ronald Read）在其 1968 年的综述中提出了这个问题，并指出那些导出条件（次数、首一、常数项为零、符号交替）是必要但不充分的。<sup>[11](https://math.uchicago.edu/~michaelklug/ReadChromatic.pdf)</sup> 一个具体的反例是 x^4 − 3x^3 + 3x^2，它满足所有上述性质，却不是任何图的色多项式；是否存在完整的刻画仍然没有答案。<sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup>

## 计算

删除–收缩递推是经典的计算引擎：对任意边 uv，

\[ \chi(G, k) = \chi(G \setminus uv, k) - \chi(G \cdot uv, k), \]

其中 G \ uv 删除该边，G · uv 收缩其端点；等价的加边–收缩形式适用于不相邻的顶点。<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup> NetworkX 等软件实现了该算法的迭代版本。<sup>[13](https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.polynomials.chromatic_polynomial.html)</sup>

精确计算一般是棘手的。对任意图，计算 P(G, z) 是 #P-困难的；2023 年的一个结果加强了这一点：对任意满足 |q−1| > 1 或 Re(q) > 3/2 的非实代数数 q，即使在平面图上，计算 |P(G, q)| 的乘法近似（以及其辐角的加法近似）也是 #P-困难的，而在全体图组成的图族上，对所有非实代数数 q 都有这种困难性。<sup>[8](https://link.springer.com/article/10.1007/s00037-023-00247-8)</sup> 较早的文献将计算描述为在 G 及其补图的最小边数上呈指数增长，且至少是 NP-完全的（斯基纳 1990）；#P-困难性结果是同一困难性的更精确的现代表述。<sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup> 目前不知道有任何多项式时间算法，而这样的算法将立即给出色数——本身就是一个困难问题。<sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup>

结构化图族允许快速方法。一种树分解转移矩阵算法以亚指数平均时间计算最多 N = 100 个顶点的随机平面图的精确 Potts 配分函数和色多项式，改进了此前约 exp(0.245N) 的最佳指数运行时间。<sup>[14](https://beta.iopscience.iop.org/article/10.1088/1751-8113/43/38/385001)</sup> 对棱柱图，固定宽度将计算归结为常数个解析分支，因此通过二进制幂可在 O(log n) 次复数乘法中求值 P(G_n, z)，而 2n 次多项式的所有系数可在 O(M(n) log n) 次算术运算中计算。<sup>[15](https://combinatorialpress.com/jcmcc-articles/volume-131/chromatic-roots-of-prism-graphs-cassini-geometry-and-a-uniform-finite-n-bound/)</sup>

## 零点与里德猜想

色根是作为某个色多项式的根的复数。<sup>[16](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v24i1p21/pdf/)</sup> 实轴上的情况已清楚：没有负的色根，区间 (0, 1) 内没有，区间 (1, 32/27] 内也没有，而色根在区间 [32/27, ∞) 中稠密。<sup>[16](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v24i1p21/pdf/)</sup> 艾伦·索卡尔（Alan Sokal）于 2004 年在题为《色根在整个复平面上稠密》（《组合学、概率与计算》第 13 卷，221–261 页）的论文中证明，复色根在整个复平面上稠密；这一结果与相变的 Yang–Lee 理论相关，并借助 θ 图得证。<sup>[3](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)</sup><sup> • </sup><sup>[16](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v24i1p21/pdf/)</sup> 平面图的根是否同样稠密仍然未知。<sup>[17](https://ar5iv.labs.arxiv.org/html/2309.10928)</sup> 特殊结构产生特殊的根：塔特（Tutte）于 1970 年证明，球面的平面三角剖分的色多项式有一个接近黄金比的根。<sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup>

定量界约束了根可能所在的位置。具有 n 个顶点和 m 条边的连通图有一个模至少为 (m−1)/(n−2) 的根，该界仅对树和 2-树是最优的。<sup>[18](https://dl.acm.org/doi/10.1006/jctb.1997.1813)</sup> 另一方面，2025 年的一个结果证明，最大度为 Δ 的图的色多项式的所有复零点都位于半径为 4.25Δ 的圆盘内，改进了此前由延森（Jenssen）、帕特尔（Patel）和雷格茨（Regts）给出的 5.94Δ 的界；对围长足够大的图，常数改进为 3.60，对无爪图改进为 3.81。<sup>[19](https://arxiv.org/pdf/2505.04366)</sup>

索卡尔猜想：只要 Re(x) > Δ(G)，就有 χ_G(x) ≠ 0。若该猜想成立，将蕴含对最大度为 Δ 的图、在 q ≥ Δ+1 时计数正常 q-着色的完全多项式时间近似方案，这是近似计数中的一个重大未解问题；除有限范围内的 Δ 外，该猜想的一个更强版本对其余所有 Δ 都有已知反例。<sup>[17](https://ar5iv.labs.arxiv.org/html/2309.10928)</sup>

## 联系：Tutte 多项式与 Potts 模型

色多项式是双变量 Tutte 多项式的一变量特殊化，塔特引入后者作为它的推广：<sup>[20](https://repository.nie.edu.sg/entities/publication/1ea56dda-cc4e-4179-a3b2-5e167acd0e0b)</sup>

\[ P(G, x) = (-1)^{|V| - c(G)}\, x^{c(G)}\, T_G(1 - x, 0), \]

其中 c(G) 是连通分支数。<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup><sup> • </sup><sup>[7](https://iuuk.mff.cuni.cz/~andrew/VKKI.pdf)</sup> 同一特殊化是统计力学中 Potts 模型的基础。q-态 Potts 配分函数为 Z_G(q, {w_e}) = Σ_{A⊆E} q^{c(A)} Π_{e∈A} w_e；将每条边的权重设为 −1，则每个正常着色获得权重 1，每个非正常着色获得权重 0，因此色多项式就是 P_G(q) = Z_G(q, −1)，即反铁磁 Potts 模型的零温极限。<sup>[9](https://ar5iv.labs.arxiv.org/html/math/0503607)</sup><sup> • </sup><sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup>

平面对偶将色多项式与流多项式 F(G, y) = (−1)^(|E|−|V|+c(G)) T_G(0, 1−y) 联系起来：平面图的色多项式对应于其对偶图的流多项式。<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup><sup> • </sup><sup>[6](https://mathworld.wolfram.com/ChromaticPolynomial.html)</sup>

## 与相关不变量的比较

色数是最粗的着色不变量：χ(G) 是使 P(G, h) ≠ 0 的最小整数 h，等价地，是多项式的第一个正的非根。<sup>[11](https://math.uchicago.edu/~michaelklug/ReadChromatic.pdf)</sup><sup> • </sup><sup>[7](https://iuuk.mff.cuni.cz/~andrew/VKKI.pdf)</sup> 多项式记录了着色计数如何随 k 增长。<sup>[1](https://bura.brunel.ac.uk/bitstream/2438/3067/1/equivalencecpcrevised.pdf)</sup>

在 Tutte 家族中，每个特殊化计数不同的对象。流多项式 T_G(0, 1−y) 计数无处为零的流，在平面图上与着色对偶；可靠性多项式 R_G(p)，即随机子图保持连通的概率，也是 Tutte 特殊化，因此网络可靠性与着色属于同一代数家族。<sup>[2](https://arxiv.org/pdf/2007.05217v3)</sup> 关于 Tutte 多项式的综述性处理因此将着色、流、可靠性和壳多项式一起视为具有共同性质的密切相关的图多项式。<sup>[21](https://link.springer.com/chapter/10.1007/978-0-8176-4789-6_9)</sup>

## 近期变化

三个进展标志着该主题的当前状态。第一，无零点区域收紧了：2025 年关于根模的 4.25Δ 界取代了 5.94Δ，对大围长图进一步改进到 3.60Δ，对无爪图改进到 3.81Δ。<sup>[19](https://arxiv.org/pdf/2505.04366)</sup> 第二，2023 年的困难性结果确定了：在大多数求值点上，近似色多项式本质上与精确计算一样困难，包括在平面图上。<sup>[8](https://link.springer.com/article/10.1007/s00037-023-00247-8)</sup> 第三，结构化输入在实践中已变得可处理：棱柱图的 O(log n) 求值，以及 100 个顶点的随机平面图上的亚指数平均时间精确计算。<sup>[15](https://combinatorialpress.com/jcmcc-articles/volume-131/chromatic-roots-of-prism-graphs-cassini-geometry-and-a-uniform-finite-n-bound/)</sup><sup> • </sup><sup>[14](https://beta.iopscience.iop.org/article/10.1088/1751-8113/43/38/385001)</sup> 主要的未解问题是索卡尔的 Re(x) > Δ 猜想——其解决将为超过最大度的着色计数给出 FPTAS——以及平面图色根的稠密性。<sup>[17](https://ar5iv.labs.arxiv.org/html/2309.10928)</sup>

## References

1. [The Equivalence of Two Graph Polynomials, Brunel University repository](https://bura.brunel.ac.uk/bitstream/2438/3067/1/equivalencecpcrevised.pdf)
2. [A Survey of Graph Polynomials Related to the Chromatic Polynomial (arXiv)](https://arxiv.org/pdf/2007.05217v3)
3. [Section 14.7. The Chromatic Polynomial, Bondy & Murty graduate textbook notes](https://faculty.etsu.edu/gardnerr/5340/notes-Bondy-Murty-GT/Bondy-Murty-GT-14-7.pdf)
4. [Graph coloring, University of Warsaw lecture notes](https://www.mimuw.edu.pl/~aszek/chromatic/lec7.pdf)
5. [An Introduction to Chromatic Polynomials, MIT course paper](https://math.mit.edu/~apost/courses/18.204_2018/Julie_Zhang_paper.pdf)
6. [Chromatic Polynomial, Wolfram MathWorld](https://mathworld.wolfram.com/ChromaticPolynomial.html)
7. [The Tutte polynomial and related polynomials](https://iuuk.mff.cuni.cz/~andrew/VKKI.pdf)
8. [Approximating the chromatic polynomial is as hard as computing it exactly, Computational Complexity (2023)](https://link.springer.com/article/10.1007/s00037-023-00247-8)
9. [Alan D. Sokal. The multivariate Tutte polynomial (arXiv math/0503607)](https://ar5iv.labs.arxiv.org/html/math/0503607)
10. [Proof of a Chromatic Polynomial Conjecture](https://math.nie.edu.sg/fmdong/Research/articles/proof%20of%20a%20chromatic%20polynomial%20conjecture.pdf)
11. [R.C. Read. An Introduction to Chromatic Polynomials (1968, reprint)](https://math.uchicago.edu/~michaelklug/ReadChromatic.pdf)
12. [Chromatic polynomial, Sage/Passagemath reference](https://passagemath.org/docs/latest/html/en/reference/graphs/sage/graphs/chrompoly.html)
13. [chromatic_polynomial, NetworkX 3.6.1 documentation](https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.polynomials.chromatic_polynomial.html)
14. [A tree-decomposed transfer matrix for computing exact Potts model partition functions, Journal of Physics A](https://beta.iopscience.iop.org/article/10.1088/1751-8113/43/38/385001)
15. [Chromatic roots of prism graphs: Cassini geometry and a uniform finite-n bound, JCMCC 131](https://combinatorialpress.com/jcmcc-articles/volume-131/chromatic-roots-of-prism-graphs-cassini-geometry-and-a-uniform-finite-n-bound/)
16. [Location of Zeros of Chromatic and Related Polynomials of Graphs, Electronic Journal of Combinatorics 24(1) (2017)](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v24i1p21/pdf/)
17. [Improved bounds for the zeros of the chromatic polynomial via Whitney's Broken Circuit Theorem (arXiv 2309.10928)](https://ar5iv.labs.arxiv.org/html/2309.10928)
18. [On the Roots of Chromatic Polynomials, Journal of Combinatorial Theory B](https://dl.acm.org/doi/10.1006/jctb.1997.1813)
19. [Improved bounds on the zeros of the chromatic polynomial of graphs and claw-free graphs (arXiv, 2025)](https://arxiv.org/pdf/2505.04366)
20. [Foundations of the chromatic polynomial, NIE repository](https://repository.nie.edu.sg/entities/publication/1ea56dda-cc4e-4179-a3b2-5e167acd0e0b)
21. [Graph Polynomials and Their Applications I: The Tutte Polynomial, Springer](https://link.springer.com/chapter/10.1007/978-0-8176-4789-6_9)

---
*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 › Chromatic and coloring invariants

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/chromatic-polynomial

English original: https://www.edgepedia.org/chromatic-polynomial
