# 无环定向

图的一个**无环定向**，是指为每条边指定一个方向，使得图中没有任何一个圈在所得有向图中成为同向定向的（有向）圈。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup> 等价地说，所得有向图是一个有向无环图（DAG）。这一概念联系着图着色、超平面安排、偏序以及计数复杂性，并在调度与网络设计中具有实际分量。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 为每条边指定方向且不含有向圈；含自环的图没有无环定向，故 A(G) = ∅。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup><sup> • </sup><sup>[2](https://users.math.msu.edu/users/bsagan/Papers/Old/sao.pdf)</sup> |
| 存在性 | 每个无自环图至少有一个：给定正常着色 f，若 f(u) < f(v)，则将边 uv 由 u 定向到 v。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup> |
| Stanley 定理（1973） | 无环定向的数目等于 (−1)^p χ_G(−1)，即色多项式在 −1 处的取值；对无自环的 G，也等于 Tutte 多项式的 T_G(2, 0)。<sup>[3](https://math.mit.edu/%7Erstan/pubs/pubfiles/18.pdf)</sup><sup> • </sup><sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup> |
| 计数复杂性 | 计算 \|A(G)\| 是 #P-完全的（Linial，1986）。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup> |
| 一般界 | 对含 n 个顶点的连通无自环图，2^(n−1) ≤ A(G) ≤ n!，左端等号恰在树时成立，右端等号恰在完全图 K_n 时成立。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup> |
| 安排对偶 | 对无自环的顶点标号图，无环定向与其图解超平面安排 {x_i = x_j : ij ∈ E} 的区域一一对应。<sup>[6](https://users.math.msu.edu/users/bsagan/Papers/Old/acp.pdf)</sup> |
| 唯一汇点 | 具有唯一汇点的无环定向数目与汇点的选择无关，且（差一个符号）等于色多项式的线性系数（Greene–Zaslavsky）。<sup>[7](https://ar5iv.labs.arxiv.org/html/2010.11236)</sup> |

## 定义与基本性质

形式上，图 G 的一个定向为每条边指定两个方向之一。若 G 的任何一个圈在所得有向图中都不是同向定向的，则该定向是无环的。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup> 单个自环是一个单边圈，任何定向都会将其同向定向，从而破坏无环性：若 G 含自环，则 A(G) = ∅。<sup>[2](https://users.math.msu.edu/users/bsagan/Papers/Old/sao.pdf)</sup>

**存在性。** 每个无自环图都至少有一个无环定向。给定 G 的一个正常着色 f，若 f(u) < f(v)，则将每条边 uv 由 u 定向到 v；沿任何圈，颜色不可能单调递增绕行一周，因此不会产生有向圈。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

## 色多项式与 Tutte 多项式

1973 年，Richard P. Stanley 证明了：对含 p 个顶点、色多项式为 χ 的图 G，整数 (−1)^p χ(−1) 恰为 G 的无环定向数。<sup>[3](https://math.mit.edu/%7Erstan/pubs/pubfiles/18.pdf)</sup> 该结果可推广为：(−1)^p χ(−k) 计数 G 的无环定向连同相容着色，即满足当边 uv 由 u 定向到 v 时必有 f(u) < f(v) 的着色 f；Stanley 借此枚举了带标号无环有向图。<sup>[3](https://math.mit.edu/%7Erstan/pubs/pubfiles/18.pdf)</sup><sup> • </sup><sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup> 这是组合互反律的标准实例：多项式在负整数处的取值计数一个相关的组合结构。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

同一个数也作为 Tutte 多项式的特化出现：|A(G)| = (−1)^|V(G)| χ_G(−1)，且对无自环的 G 也等于 T_G(2, 0)。<sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup> Tutte 多项式在 (x, y)-平面上取值给出许多图的不变量，包括生成树与森林的数目以及无环定向的数目。<sup>[8](https://www.cambridge.org/core/journals/combinatorics-probability-and-computing/article/abs/approximating-the-number-of-acyclic-orientations-for-a-class-of-sparse-graphs/65DFE52A95DD3357F505F68D84ED2F35)</sup> 尽管有这些闭式，一般情形下的求值仍然困难：Linial 于 1986 年利用 Stanley 的结果证明了计数无环定向是 #P-完全的。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup>

## 无环定向与偏序

特殊的定向对应特殊的偏序集表示。**传递定向**是一种无环定向，其中若 xy 与 yz 是有向图的边，则 xz 也必为边；一个图容许传递定向，当且仅当它是某个偏序集的可比图。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

对覆盖图有更严格的对应：一个图具有一种使每条边都独立（在覆盖关系所用的拟阵论意义下）的无环定向，当且仅当它是某个偏序集的覆盖图，而判定覆盖图是 NP-完全的。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup> Václav Chvátal 的完美可序图——其完美图算法纲领背后的图类——以一个定向条件刻画：G 是完美可序的，当且仅当它有一个无环定向，其中不存在一条诱导的 4 顶点路使其两条端边均向外定向。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup> 在任意这样的定向即偏序中，Dilworth 引理适用：每个含 n 个顶点的 DAG 或者有一条含超过 t 个顶点的链，或者有一个含至少 n/t 个顶点的反链。<sup>[9](https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_and_Computation_Fundamentals/Mathematics_for_Computer_Science_(Lehman_Leighton_and_Meyer)/02%3A_Structures/09%3A_Directed_graphs_and_Partial_Orders/9.05%3A_Directed_Acyclic_Graphs_and_Scheduling)</sup>

对完全二部图，Douglas West 及其合作者证明了可能的偏序集大小是连续的：对每个满足 p + q − 1 ≤ k ≤ pq 的 k，图 K_{p,q} 都有一个恰含 k 条独立边的无环定向。<sup>[10](http://dwest.web.illinois.edu/pubs/aobip.pdf)</sup>

## 超平面安排与对偶

固定顶点以 [n] 标号，考虑图解安排，即 R^n 中的超平面集合 H(G) = {x_i = x_j : ij ∈ E}。对无自环图 G，Thomas Zaslavsky 的 1975 年定理指出 P(G; −1) = (−1)^n 乘以 H(G) 的区域数。<sup>[6](https://users.math.msu.edu/users/bsagan/Papers/Old/acp.pdf)</sup> 结合 Stanley 定理，这给出了定向计数的一个几何图景。

对无自环的 G，直接联系是由 Curtis Greene 证明的一个双射：G 的无环定向（顶点以 [n] 标号）与 H(G) 的区域一一对应——一个定向是无环的，当且仅当它所选择的半空间的交集是安排的一个区域。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup><sup> • </sup><sup>[6](https://users.math.msu.edu/users/bsagan/Papers/Old/acp.pdf)</sup> Zaslavsky 将该对应推广到带号图。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

## 数值一览

无环定向的计数跨度很大，对若干图族已有精确结果。

- **界。** 对 n 阶连通无自环图，2^(n−1) ≤ A(G) ≤ n!。下界恰由树取到，上界恰由完全图 K_n 取到。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup>
- **完全多部图。** Cameron、Glass 与 Schumacher 给出了完全二部图 K_{n1,n2} 的显式公式，且公式可推广到完全多部图，包括带固定汇点的计数。<sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup> 一篇近期论文给出了完全 p-部图无环定向的一种编码，以及可在 O(n) 阶内计算的全部无环定向的递归构造。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup>
- **超立方体。** Kahale 与 Schulman 用概率方法给出下界，并用联系无环定向与 Laplacian 谱的上界，界定了 d 维超立方体的 |A(Q_d)|。<sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup>
- **网格。** 网格图 G(m,n) 出现于统计物理模型，是计数带唯一汇点的无环定向的标准测试族；3×n 网格的递推与公式已知，2×n 网格有简单答案。<sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup>
- **唯一汇点。** 由 Greene–Zaslavsky 定理，具有唯一汇点的无环定向数不依赖哪个顶点是汇点，且（差一个符号）等于色多项式的线性系数。<sup>[7](https://ar5iv.labs.arxiv.org/html/2010.11236)</sup>

## 与相关不变量的比较

定向通过两个经典定理与色数相互作用。Gallai–Hasse–Roy–Vitaver 定理指出，连通图的色数等于在使最长路长度最小的无环定向中，最长路长度加一。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup> Minty 证明了一个圈版本：χ(G) ≤ 1 + r(D)，其中 r(D) 是在定向 D 中沿所有圈取 ⌈a/b⌉ 的最大值，a 为前向边数、b 为后向边数；由此可得 Gallai–Roy 形式：对最大路长 l(D)，有 l(D) ≥ χ(G) − 1。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

有向图 D 的**双色数**是最小的 k，使得 V(D) 可划分为 k 个子集，每个子集诱导一个无环子有向图；它推广了色数，因为一个图中任何部分内部均无弧的定向恰是一个正常着色。<sup>[11](https://arxiv.org/html/2511.20246)</sup><sup> • </sup><sup>[12](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v32i4p27)</sup> **无环双色数**则进一步要求每个二部诱导子有向图也无环；存在两个参数差距任意大的有向图，甚至在双色数为 2 的竞赛图中也是如此。<sup>[11](https://arxiv.org/html/2511.20246)</sup>

**反馈弧集**是删去后留下无环子图的边子集，因而衡量一个任意定向离无环有多远。计算最小反馈弧集即使对竞赛图也是 NP-难的；该问题最初由 Slater 针对不一致的循环赛结果研究，应用于性质测试、死锁消解、排序投票与电子电路。<sup>[13](https://ar5iv.labs.arxiv.org/html/2204.01938)</sup> 在构造方面，每个含 m 条边的有向图都可将其边集划分为两个无环有向图，故 β(G) ≤ m/2，而 Berger–Shor 界给出 β(G) = m/2 − Ω(m^(3/4))。<sup>[13](https://ar5iv.labs.arxiv.org/html/2204.01938)</sup>

## 算法与复杂性

判定一个给定定向是否无环很容易，但计数与列举才是困难而活跃的一面。

- **计数**对一般图是 #P-完全的，可由色多项式求值归约得到。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup><sup> • </sup><sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup> 因此实际工作针对特定图族，以及用于近似采样与计数的马尔可夫链蒙特卡洛方法。<sup>[4](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)</sup>
- **列举。** Squire 算法以每个定向 O(n) 时间生成所有无环定向。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup> 对带单个或多个指定源的无环定向的列举算法，每个解达到 O(m·n) 延迟，工作空间 O(m + n)；当未指定源时延迟降至 O(m)，这是首个有保证的线性延迟。<sup>[14](https://arpi.unipi.it/retrieve/e0d6c928-c206-fcf8-e053-d805fe0aa794/submitted.pdf)</sup>
- **格雷码。** 1993 年 Savage、Squire 与 West 描述了一种归纳构造，恰好一次地生成弦图的每个无环定向，每次翻转一条弧；2024 年的一篇 SIAM 论文将其推广到满足一种推广完美消去序的排序条件的超图，以及弦图无环定向格的商。<sup>[15](https://epubs.siam.org/doi/10.1137/23M1546567)</sup>
- **双极定向。** 对具有不同顶点 s ≠ t 的弦图，双极 (s,t)-定向（恰有一个源 s 和一个汇 t 的无环定向）的数目可在 Õ(|V(G)| + |E(G)|) 时间内计算，并可在 O(|E(G)|) 时间内均匀随机采样一个。<sup>[16](https://par.nsf.gov/servlets/purl/10355288)</sup>
- **探测。** Noga Alon 与 Zsolt Tuza 研究了通过探测边来确定一个未知无环定向的模型；对常数边概率 p 的随机图，几乎必然最坏情形探测数 c(G) 为 Θ(n log n)。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>
- **无环双色数的判定问题。** 判定无环双色数是否至多为 2，即使对二部有向图也是 NP-完全的，而对竞赛图则是多项式的。<sup>[11](https://arxiv.org/html/2511.20246)</sup>

## 应用与近期进展

**调度。** 带前置约束的调度问题被建模为有向图，任务为节点，直接前置约束为边；一致地排序任务即拓扑排序。<sup>[9](https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_and_Computation_Fundamentals/Mathematics_for_Computer_Science_(Lehman_Leighton_and_Meyer)/02%3A_Structures/09%3A_Directed_graphs_and_Partial_Orders/9.05%3A_Directed_Acyclic_Graphs_and_Scheduling)</sup> 为调度计划寻找关键路径归结为有向无环图中的最长路，可线性时间求解，而一般图中的最长路是 NP-难的；一项 2024 年研究着眼于该应用，考察了完全二部图随机无环定向中最长有向路长度的分布。<sup>[17](https://arxiv.org/html/2408.12716)</sup>

**网络与优化。** 在互连网络中，死锁预防通过施加一个有向无环资源依赖图来实现，这是一种基于 DAG 的方法，在该文献中被提出并进一步研究。<sup>[18](http://www-sop.inria.fr/members/Jean-Claude.Bermond/PUBLIS/BDFP03.pdf)</sup> 带路径约束的无环定向的线性规划表述已被用于求解顶点着色问题以及频率分配问题的某些版本。<sup>[19](https://www.numdam.org/articles/10.1051/ro:2008028/)</sup> 生成带唯一源的无环定向被用于计算网络可靠性，承自 Johnson 1984 年的工作。<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup> 《数学百科全书》还列出其在渗流、神经网络与并行排序中的应用。<sup>[1](https://encyclopediaofmath.org/wiki/Acyclic_orientation)</sup>

**2023 年后的结果。** 近期工作包括上述无环双色数结果，<sup>[11](https://arxiv.org/html/2511.20246)</sup> 无三角形有向图的界：对每个 ε > 0 及足够大的 n，最小无环数满足 (1/√2 − ε)√(n log n) ≤ a(n) ≤ (107/8)√n log n，最大双色数满足 (8/107)√n/log n ≤ t(n) ≤ (√2 + ε)√(n/log n)，并构造了一个 25 个顶点、双色数为 3 的无三角形有向图；<sup>[12](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v32i4p27)</sup> 多部图枚举与编码结果；<sup>[5](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)</sup> 超图格雷码推广；<sup>[15](https://epubs.siam.org/doi/10.1137/23M1546567)</sup> 以及随机完全二部图最长路分布研究。<sup>[17](https://arxiv.org/html/2408.12716)</sup>

## References

1. [Acyclic orientation, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Acyclic_orientation)
2. [B. Sagan. Acyclic orientations of graphs (paper)](https://users.math.msu.edu/users/bsagan/Papers/Old/sao.pdf)
3. [R. P. Stanley (1973). Acyclic orientations of graphs, Discrete Mathematics 5](https://math.mit.edu/%7Erstan/pubs/pubfiles/18.pdf)
4. [Enumerating Acyclic Orientations, Georgia Tech thesis](https://repository.gatech.edu/server/api/core/bitstreams/4c422588-23aa-40ad-ad66-842e8284ac01/content)
5. [Encoding and enumerating acyclic orientations of graphs, Utilitas Mathematica 125](https://combinatorialpress.com/article/um/volume%20125/encoding-and-enumerating-acyclic-orientations-of-graphs.pdf)
6. [B. Sagan. The Amazing Chromatic Polynomial](https://users.math.msu.edu/users/bsagan/Papers/Old/acp.pdf)
7. [Toppleable Permutations, Excedances and Acyclic Orientations, arXiv](https://ar5iv.labs.arxiv.org/html/2010.11236)
8. [Approximating the Number of Acyclic Orientations for a Class of Sparse Graphs, Combinatorics, Probability and Computing](https://www.cambridge.org/core/journals/combinatorics-probability-and-computing/article/abs/approximating-the-number-of-acyclic-orientations-for-a-class-of-sparse-graphs/65DFE52A95DD3357F505F68D84ED2F35)
9. [Directed Acyclic Graphs and Scheduling, Mathematics for Computer Science (Lehman, Leighton, Meyer), LibreTexts](https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_and_Computation_Fundamentals/Mathematics_for_Computer_Science_(Lehman_Leighton_and_Meyer)/02%3A_Structures/09%3A_Directed_graphs_and_Partial_Orders/9.05%3A_Directed_Acyclic_Graphs_and_Scheduling)
10. [Acyclic orientations of complete bipartite graphs, Discrete Mathematics (D. West)](http://dwest.web.illinois.edu/pubs/aobip.pdf)
11. [Acyclic dichromatic number of oriented graphs, arXiv (2025)](https://arxiv.org/html/2511.20246)
12. [Minimum Acyclic Number and Maximum Dichromatic Number of Oriented Triangle-Free Graphs of a Given Order, EJC v32i4p27](https://www.combinatorics.org/ojs/index.php/eljc/article/view/v32i4p27)
13. [Extremal results on feedback arc sets in digraphs, arXiv](https://ar5iv.labs.arxiv.org/html/2204.01938)
14. [Listing Acyclic Orientations of Graphs with Single and Multiple Sources, University of Pisa](https://arpi.unipi.it/retrieve/e0d6c928-c206-fcf8-e053-d805fe0aa794/submitted.pdf)
15. [Combinatorial Generation via Permutation Languages. V. Acyclic Orientations, SIAM Journal on Discrete Mathematics](https://epubs.siam.org/doi/10.1137/23M1546567)
16. [Counting and Sampling Orientations on Chordal Graphs, NSF PAR](https://par.nsf.gov/servlets/purl/10355288)
17. [The distribution of the length of the longest path in random acyclic orientations of a complete bipartite graph, arXiv (2024)](https://arxiv.org/html/2408.12716)
18. [Acyclic Orientations for Deadlock Prevention in Interconnection Networks, INRIA](http://www-sop.inria.fr/members/Jean-Claude.Bermond/PUBLIS/BDFP03.pdf)
19. [Acyclic orientations with path constraints, RAIRO Operations Research](https://www.numdam.org/articles/10.1051/ro:2008028/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Graph invariants and parameters › Acyclic and orientation invariants

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/acyclic-orientation

English original: https://www.edgepedia.org/acyclic-orientation
