# 团宽

**团宽**（Clique-width）是一种图参数，它衡量一个图的复杂度，即用一小组操作从单个顶点构造出该图所需的最少标签数。它由波尔多大学研究图逻辑的计算机科学家布鲁诺·库尔塞勒（Bruno Courcelle）和斯特凡·奥拉留（Stephan Olariu）在2000年发表于《离散应用数学》（*Discrete Applied Mathematics*）的一篇论文中提出，其基础是埃贡·万克（Egon Wanke）在图语法方面引入的一个相关概念。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)</sup> 它的主要用途在算法方面：许多在图的一般情形下是NP困难的问题，在团宽有常数界的图类上变得多项式时间可解。<sup>[3](https://arxiv.org/abs/1901.00335)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 使用四种操作构建一个图所需的最少标签数：创建带标签的顶点、不交并、在两个标签之间添加所有边、重标号<sup>[4](https://www.sciencedirect.com/science/article/pii/S0166218X02001981)</sup> |
| 小取值 | 无边图的团宽为1；余图恰好是团宽至多为2的图；树的团宽至多为3<sup>[2](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)</sup> |
| 与树宽的关系 | 树宽为 \( k \) 的图，其团宽至多为 \( 3 \cdot 2^{k-1} \)，且这种指数依赖是必要的<sup>[5](https://epubs.siam.org/doi/abs/10.1137/S0097539701385351?journalCode=smjcat)</sup> |
| 反方向 | 完全图的团宽为2，但树宽为 \( n-1 \)，因此团宽有界并不意味着树宽有界<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup> |
| 计算 | 确定给定图的团宽是NP困难的<sup>[6](https://citeseerx.ist.psu.edu/document?doi=ebc993dd533de4613f7404e3e7b71e33059003f5&repid=rep1&type=pdf)</sup> |
| 近似 | 团宽至多为 \( p \) 的 \( n \) 顶点图，存在一个可在立方时间内计算出的 \( (8p-1) \)-表达式<sup>[6](https://citeseerx.ist.psu.edu/document?doi=ebc993dd533de4613f7404e3e7b71e33059003f5&repid=rep1&type=pdf)</sup> |
| 秩宽联系 | \( \mathrm{rwd}(G) \le \mathrm{cwd}(G) \le 2^{1+\mathrm{rwd}(G)} - 1 \)<sup>[7](https://www.researchgate.net/publication/249386923_Width_Parameters_Beyond_Treewidth_and_their_Applications)</sup> |

## 定义

一个 \( k \)-图是指每个顶点都被赋予 \( \{1, \ldots, k\} \) 中一个标签的图。从 \( k \)-图出发，四种操作可以构建更大的图：<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>

1. 创建一个由单个标签为 \( i \) 的顶点构成的新图。<sup>[8](https://link.springer.com/article/10.1007/s00224-023-10132-0)</sup>
2. 取两个带标签图的不交并 \( \oplus \)。<sup>[8](https://link.springer.com/article/10.1007/s00224-023-10132-0)</sup>
3. 应用 \( \eta_{i,j} \)，即在标签为 \( i \) 的顶点与标签为 \( j \) 的顶点之间添加所有边，其中 \( i \neq j \)。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>
4. 应用 \( \rho_{i \to j} \)，即将每个标签为 \( i \) 的顶点重标号为 \( j \)。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>

由这些符号构成的一个合式表达式称为一个 k-表达式，图 \( G \) 的团宽记作 \( \mathrm{cwd}(G) \)，它是使得某个 \( k \)-表达式的值为 \( G \) 的最小 \( k \)。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup> 每个 \( n \) 顶点图都显然有一个 \( n \)-表达式，因为每个顶点可以携带自己的标签。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)</sup>

一个具体的例子展示了这些操作如何协同工作。顶点为 \( u, v, w, x \) 的完全图 \( K_4 \) 可以表示为

\[ \rho_{2 \to 1}(\eta_{1,2}(2(u) \oplus \rho_{2 \to 1}(\eta_{1,2}(2(v) \oplus \rho_{2 \to 1}(\eta_{1,2}(1(w) \oplus 2(x))))))) \]

因此 \( \mathrm{cwd}(K_4) \le 2 \)，又因为任何含边的图的团宽都不为1，所以 \( \mathrm{cwd}(K_4) = 2 \)。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)</sup><sup> • </sup><sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup> 更一般地，对于每个 \( n > 1 \)，完全图 \( K_n \) 的团宽为2。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>

## 基本取值与图类

最小的情形已被完全理解。可由1-表达式定义的图类 \( \mathrm{C}(1) \) 恰好是无边图，因为只有一个标签时，任何 \( \eta \) 操作都无法应用。团宽至多为2的图恰好是余图，即不包含三条边的诱导路径的图，而每棵树的团宽至多为3。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)</sup><sup> • </sup><sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>

对于某些图类，存在显式算法来构造表达式：余图、团宽至多为3的图以及P4稀疏图（其中每五个顶点至多张成一条长度为3的诱导路径）都有已知的构造算法。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup> 对于许多遗传图类（即在取诱导子图下封闭的图类），团宽的有界性已被研究和确定。<sup>[3](https://arxiv.org/abs/1901.00335)</sup>

## 与树宽的关系

树宽是树可分解图上多项式时间算法背后的主导参数，它与团宽的比较只在一个方向上成立。树宽至多为 \( k \) 的图，其团宽至多为 \( 3 \cdot 2^{k-1} \)，这个界由科尼尔（Corneil）和罗蒂克斯（Rotics）给出，改进了早先库尔塞勒–奥拉留的界 \( 4 \cdot 2^{k-1} + 1 \)。<sup>[5](https://epubs.siam.org/doi/abs/10.1137/S0097539701385351?journalCode=smjcat)</sup> 这个界的指数形式是必要的：对于每个 \( k \)，都存在一个树宽为 \( k \) 的图，其团宽至少为 \( 2^{\lfloor k/2 \rfloor - 1} \)。<sup>[5](https://epubs.siam.org/doi/abs/10.1137/S0097539701385351?journalCode=smjcat)</sup>

反方向则没有界。\( n \) 顶点完全图的团宽为2，但树宽为 \( n-1 \)，因此团宽有界的图可以有任意大的树宽。对于稀疏图，这一差距会缩小：如果团宽为 \( k \) 的图不包含完全二部图 \( K_{t,t} \) 作为子图，则其树宽至多为 \( 3k(t-1) - 1 \)，因此在任何稀疏图族上，树宽有界与团宽有界是等价的。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>

## 算法推论

这个参数的重要性来自一元二阶逻辑。如果给定一个图及其 \( k \)-表达式（对于固定的 \( k \)），那么任何可在一元二阶逻辑中表达（对顶点进行量化，即MSO1逻辑）的图问题都可以在多项式时间内求解；对于只使用顶点集量化（而不对边量化）的问题，则可以在线性时间内求解。<sup>[2](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)</sup><sup> • </sup><sup>[9](https://www.sciencedirect.com/science/article/pii/S0166218X02001981)</sup> 后来，埃斯佩拉格（Espelage）、古尔斯基（Gurski）和万克（Wanke）、科布勒（Kobler）和罗蒂克斯（Rotics）以及拉奥（Rao）的工作将多项式时间可解性扩展到了许多非MSO1问题上，这些问题是针对给定 \( p \)-表达式的有界团宽图。<sup>[6](https://citeseerx.ist.psu.edu/document?doi=ebc993dd533de4613f7404e3e7b71e33059003f5&repid=rep1&type=pdf)</sup>

问题在于表达式必须是可用的。由于计算团宽是NP困难的，这似乎会阻碍应用，但近似算法挽救了它们：乌姆（Oum）的立方时间算法为任何团宽至多为 \( p \) 的 \( n \) 顶点图生成一个 \( (8p-1) \)-表达式，这建立在乌姆和西摩（Seymour）早先一个界和运行时间都更差的结果之上。因此，这些论文中处理的NP完全问题，在任何有界团宽的图类上都是多项式时间可解的，即使输入中没有提供 \( p \)-表达式。<sup>[6](https://citeseerx.ist.psu.edu/document?doi=ebc993dd533de4613f7404e3e7b71e33059003f5&repid=rep1&type=pdf)</sup>

对参数的依赖可能很严重。许多基于团宽的算法运行时间为 \( n^{f(k)} \)，在广泛相信的假设 \( \mathrm{FPT} \ne \mathrm{W}[1] \) 下，这样的运行时间本质上是最优的。<sup>[10](https://sites.cs.ucsb.edu/~daniello/papers/cliquewidth.pdf)</sup> 例如，以团宽为参数的b-着色是W[1]困难的，而一个在给定团宽 \( w \)-表达式的 \( n \) 顶点图上运行时间为 \( n^{2^{o(w)}} \) 的算法将推翻指数时间假设。<sup>[8](https://link.springer.com/article/10.1007/s00224-023-10132-0)</sup>

## 计算与近似该参数

判定一个图是否具有至多为 \( k \) 的团宽是NP困难的，这由费罗斯（Fellows）、罗萨蒙德（Rosamond）、罗蒂克斯（Rotics）和塞德（Szeider）证明，团宽最小化也是NP困难的。<sup>[6](https://citeseerx.ist.psu.edu/document?doi=ebc993dd533de4613f7404e3e7b71e33059003f5&repid=rep1&type=pdf)</sup><sup> • </sup><sup>[11](https://durham-repository.worktribe.com/output/1698028/clique-width-minimization-is-np-hard)</sup> 对于任意固定的 \( k \)，目前没有已知的多项式时间算法来测试一个图是否具有至多为 \( k \) 的团宽。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup>

主要的近似结果同样来自乌姆和西摩。对于固定的 \( k \)，一个运行时间为 \( O(n^9 \log n) \) 的算法要么判定一个 \( n \) 顶点输入图的团宽至少为 \( k+1 \)，要么输出一个团宽至多为 \( 2^{3k+2} - 1 \) 的分解。其背后的工具是秩宽，它定义为由图确定的一个对称子模函数的分支宽度；早先最好的算法由约翰松（Johansson）给出，仅保证团宽至多为 \( k \log n \) 的分解。<sup>[1](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)</sup> 秩宽的设计初衷就是与团宽密切相关：\( \mathrm{rwd}(G) \le \mathrm{cwd}(G) \le 2^{1+\mathrm{rwd}(G)} - 1 \)，因此图具有有界秩宽当且仅当它具有有界团宽。<sup>[7](https://www.researchgate.net/publication/249386923_Width_Parameters_Beyond_Treewidth_and_their_Applications)</sup><sup> • </sup><sup>[12](https://epubs.siam.org/doi/10.1137/050629616)</sup>

## 相关参数

万克的NLC-宽度源自节点标签受控图语法，它使用一个连接操作代替了单独的 \( \eta \) 和 \( \oplus \)。这两个度量在如下意义下是等价的：\( \mathrm{nlcwd}(G) \le \mathrm{cwd}(G) \le 2 \cdot \mathrm{nlcwd}(G) \)，因此相同的图类具有有界团宽和有界NLC-宽度。<sup>[13](https://citeseerx.ist.psu.edu/document?doi=9c6da5e539c5e23269300d99596add41e2516ca0&repid=rep1&type=pdf)</sup> NLC-宽度的一个有用性质是，一个图与其补图具有相同的NLC-宽度。<sup>[7](https://www.researchgate.net/publication/249386923_Width_Parameters_Beyond_Treewidth_and_their_Applications)</sup> 库尔塞勒还将定义扩展到了可数图，证明了可数图具有有限团宽当且仅当其有限诱导子图具有有界团宽。<sup>[14](https://www.sciencedirect.com/science/article/pii/S0012365X03003030)</sup>

## References

1. [Sang-il Oum and Paul Seymour. Approximating clique-width and branch-width. Journal of Combinatorial Theory, Series B 96 (2006) 514–528.](https://web.math.princeton.edu/~pds/papers/rankwidth/paper.pdf)
2. [On the fixed parameter complexity of graph enumeration problems definable in monadic second-order logic, Discrete Applied Mathematics (ScienceDirect)](https://www.sciencedirect.com/science/article/pii/S0166218X00002213)
3. [Clique-Width for Hereditary Graph Classes. arXiv:1901.00335.](https://arxiv.org/abs/1901.00335)
4. [Edge dominating set and colorings on graphs with fixed clique-width. Discrete Applied Mathematics.](https://www.sciencedirect.com/science/article/pii/S0166218X02001981)
5. [D. G. Corneil and U. Rotics. On the Relationship Between Clique-Width and Treewidth. SIAM Journal on Computing 34(4) (2005) 825–847.](https://epubs.siam.org/doi/abs/10.1137/S0097539701385351?journalCode=smjcat)
6. [Clique-width of Graph Classes Defined by Two-Level Constructive Characterizations (Csehi et al.), CiteSeerX.](https://citeseerx.ist.psu.edu/document?doi=ebc993dd533de4613f7404e3e7b71e33059003f5&repid=rep1&type=pdf)
7. [Width Parameters Beyond Tree-width and their Applications. ResearchGate.](https://www.researchgate.net/publication/249386923_Width_Parameters_Beyond_Treewidth_and_their_Applications)
8. [b-Coloring Parameterized by Clique-Width. Theory of Computing Systems (2023).](https://link.springer.com/article/10.1007/s00224-023-10132-0)
9. [Edge dominating set and colorings on graphs with fixed clique-width, ScienceDirect record.](https://www.sciencedirect.com/science/article/pii/S0166218X02001981)
10. [Intractability of Clique-width Parameterizations (Fellows, Rosamond, Rotics, Szeider).](https://sites.cs.ucsb.edu/~daniello/papers/cliquewidth.pdf)
11. [Clique-width minimization is NP-hard. Durham Repository.](https://durham-repository.worktribe.com/output/1698028/clique-width-minimization-is-np-hard)
12. [Sang-il Oum. Rank-Width and Well-Quasi-Ordering. SIAM Journal on Discrete Mathematics 22(2) (2008) 666–682.](https://epubs.siam.org/doi/10.1137/050629616)
13. [Bruno Courcelle, chapter on graph algebras and widths of graphs, CiteSeerX.](https://citeseerx.ist.psu.edu/document?doi=9c6da5e539c5e23269300d99596add41e2516ca0&repid=rep1&type=pdf)
14. [B. Courcelle. Clique-width of countable graphs: a compactness property. Discrete Mathematics 276 (2004) 127–148.](https://www.sciencedirect.com/science/article/pii/S0012365X03003030)

---
*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 › Algebraic graph invariants

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/clique-width

English original: https://www.edgepedia.org/clique-width
