# 网络矩阵

**网络矩阵**是由同一顶点集上的有向树 \( T \) 和有向图 \( D \) 构造出的一个 {0, +1, −1}-矩阵：其行对应 \( T \) 的弧，列对应 \( D \) 的弧，每个元素记录的是 \( T \) 中从一条 \( D \)-弧的尾到头的路径是否正向（+1）、反向（−1）经过某条给定的树弧，或者根本不经过（0）。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup> 网络矩阵是全幺模性的基本构成单元，它解释了为什么许多图上的线性规划——例如最大流——具有整数最优解。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对树弧 \( e \in E(T) \) 和图弧 \( f \in E(D) \)，元素 \( N_{ef} \in \{0, +1, -1\} \) 由 \( e \) 在 \( T \) 中 \( f \) 的尾到头路径上的带符号遍历给出<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup> |
| 全幺模性 | 每个网络矩阵都是全幺模的，由图特于 1965 年证明<sup>[2](https://citeseerx.ist.psu.edu/document?doi=659315ab21e0a9cc9fd42156d0e59f874bc135a8&repid=rep1&type=pdf)</sup> |
| 整性 | 若 \( N \) 是网络矩阵且 \( b \) 为整数向量，则 \( \{x : Nx \le b\} \) 的极点解为整数；对偶规划亦然<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup> |
| 基本例子 | 每个有向图的节点–弧关联矩阵都是全幺模的，并且是一个网络矩阵<sup>[3](https://fabiofurini.github.io/network-optimization/flows/network-flow-models/total-unimodularity-and-integrality/)</sup> |
| 分解作用 | 西摩（1980）证明了每个全幺模矩阵都可由网络矩阵、它们的转置以及两个例外矩阵通过 1-、2-、3-和构造而成，并具有多项式时间的分解算法<sup>[4](https://sites.math.washington.edu/~thomas/teaching/m583_s2008_web/main.pdf)</sup> |
| 识别 | 网络矩阵检测已在 SCIP 等求解器中实现，它维护所有实现给定矩阵的图的 SPQR-森林分解<sup>[5](https://www.scipopt.org/scip/doc/html/group__NetworkMatrix.php)</sup> |

## 定义与构造

设 \( T = (V, E(T)) \) 为一棵有向树，即 \( V \) 上的一棵生成树，其弧各自有方向但不必全部指向某个根；又设 \( D = (V, E(D)) \) 为同一顶点集上的有向图。对树弧 \( e \in E(T) \) 和图弧 \( f \in E(D) \)，令 \( P \) 为 \( T \) 中从 \( f \) 的尾到其头的路径。则<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup>

\[
N_{ef} = \begin{cases}
0 & \text{若 } e \text{ 不出现在 } P \text{ 上}, \\
+1 & \text{若 } e \text{ 在 } P \text{ 上以正向出现}, \\
-1 & \text{若 } e \text{ 在 } P \text{ 上以反向出现}.
\end{cases}
\]

所得的 \( |E(T)| \times |E(D)| \) 矩阵即为对 \( (T, D) \) 的网络矩阵。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup> 一个等价的逐列视角固定一条非树弧 \( f \)：删除 \( f \) 的对应逻辑将树分成两个连通分量，而元素 \( N_{ef} \) 就是当一个分量赋势 0、另一个赋势 1 时跨越 \( f \) 的势差。<sup>[2](https://citeseerx.ist.psu.edu/document?doi=659315ab21e0a9cc9fd42156d0e59f874bc135a8&repid=rep1&type=pdf)</sup>

有向图的节点–弧关联矩阵是最简单的实例：它是全幺模的，因为每一列恰好有一个 +1 和一个 −1，并且它符合网络矩阵的框架。<sup>[3](https://fabiofurini.github.io/network-optimization/flows/network-flow-models/total-unimodularity-and-integrality/)</sup> 网络矩阵的子矩阵仍是网络矩阵，因为删除一条树弧的列对应于在 \( T \) 中收缩该弧。<sup>[6](https://www.nzdr.ru/data/media/biblio/kolxoz/M/MA/MAc/Brualdi%20R.A.%2C%20Ryser%20H.J.%20Combinatorial%20matrix%20theory%20%28CUP%2C%201991%29%28ISBN%200521322650%29%28O%29%28378s%29_MAc_.pdf)</sup>

## 全幺模性与整性

若一个矩阵的每个方子式的行列式均为 0、+1 或 −1，则称该矩阵为全幺模的；取 \( k = 1 \) 时这已迫使每个元素为 0、+1 或 −1。<sup>[3](https://fabiofurini.github.io/network-optimization/flows/network-flow-models/total-unimodularity-and-integrality/)</sup> 图特于 1965 年证明了网络矩阵是全幺模的。<sup>[2](https://citeseerx.ist.psu.edu/document?doi=659315ab21e0a9cc9fd42156d0e59f874bc135a8&repid=rep1&type=pdf)</sup> 一种证明将网络矩阵 \( M \) 写成 \( M = A' B'^{-1} \)，其中 \( A' \) 和 \( B' \) 分别是图和树的约化定向关联矩阵，且 \( B' \) 是幺模的。<sup>[6](https://www.nzdr.ru/data/media/biblio/kolxoz/M/MA/MAc/Brualdi%20R.A.%2C%20Ryser%20H.J.%20Combinatorial%20matrix%20theory%20%28CUP%2C%201991%29%28ISBN%200521322650%29%28O%29%28378s%29_MAc_.pdf)</sup>

全幺模性有一个直接的算法推论。若 \( N \) 是网络矩阵且 \( b \) 为整数向量，则 \( \{x : Nx \le b\} \) 的极点解为整数，且对偶规划 \( \{y : y^{\mathsf T} N \ge c^{\mathsf T}\} \) 在 \( c \) 为整数时也是整性的。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup> 刘、拉维和辛格用迭代舍入方法证明了这两个命题：每一步中，一个极点解包含一条取值为整数的弧，固定该变量，从 \( D \) 中删除该弧，并更新右端项使得剩余约束矩阵仍是网络矩阵；该算法在多项式时间内返回最优整数解。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup>

## 在全幺模矩阵理论中的作用

网络矩阵不仅仅是众多例子中的一个；它们支撑着全幺模性的结构分类。西摩于 1980 年证明了每个全幺模矩阵在行和列的置换以及 ±1 因子缩放的意义下，要么是一个网络矩阵，要么是网络矩阵的转置，要么是两个例外矩阵 \( B_1 \) 和 \( B_2 \) 之一，要么是由这些矩阵通过 1-、2-、3-和递归构造而成的矩阵。<sup>[4](https://sites.math.washington.edu/~thomas/teaching/m583_s2008_web/main.pdf)</sup><sup> • </sup><sup>[7](https://arxiv.org/abs/0901.0885)</sup> 用拟阵的语言来说，相应的陈述是每个正则拟阵都可通过 1-、2-、3-和分解为图拟阵、余图拟阵和十元拟阵 \( R_{10} \)。<sup>[8](https://citeseerx.ist.psu.edu/document?doi=0ac52125e03611dd6c068ecc6a046388071ec723&repid=rep1&type=pdf)</sup>

这种分解在计算上是有效的。西摩定理给出的全幺模矩阵分解可以在多项式时间内描述，这将全幺模性测试问题置于 NP ∩ co-NP 中；西摩还给出了一个多项式时间但较为复杂的测试方法。<sup>[4](https://sites.math.washington.edu/~thomas/teaching/m583_s2008_web/main.pdf)</sup> 特鲁姆珀后来提出了一个 \( O((m+n)^{3}) \) 算法来判定一个实 \( m \times n \) 矩阵是否全幺模。<sup>[9](https://www.sciencedirect.com/science/article/pii/0095895690900304)</sup> 该分解还产生了一个多项式时间算法，可为任何全幺模矩阵构造双向图表示。<sup>[7](https://arxiv.org/abs/0901.0885)</sup>

## 在优化中的应用

网络矩阵规划的整性是若干经典结果的基础。传统应用范围从二部图中顶点覆盖和最大匹配的整性，到有向图中的最大流最小割定理：最大流线性规划可以写成其约束矩阵为节点–弧关联矩阵删去一行的形式，该矩阵具有网络表示，而线性规划对偶性则给出最大流与最小割的相等。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup>

该框架超越了图上的流。刘、拉维和辛格使用网络矩阵来证明最大权拟阵基问题、拟阵交问题和子模流问题的对偶线性规划的整性：在每种情况下，经过 uncrossing 将约束族约化为一个链或一个无交叉族之后，受限对偶的约束矩阵是一个网络矩阵的转置。<sup>[1](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)</sup> 这些矩阵的全幺模性在对偶的右端项为整数时也自动蕴含对偶规划的整性。<sup>[10](https://www.cambridge.org/core/books/abs/iterative-methods-in-combinatorial-optimization/network-matrices/62DFF76A362F55690B507C582A8D91CB)</sup>

## 识别与计算

检测一个给定矩阵是否为网络矩阵是一个非平凡的算法问题，因为许多不同的图与生成树对可以实现同一个矩阵。SCIP 求解器在预求解过程中检测网络矩阵，维护并更新一个 SPQR-森林——一种表示对应于给定网络矩阵的所有图的图分解；该检测建立在 比克斯比与瓦格纳以及范德许尔斯特与瓦尔特的图实现算法之上。<sup>[5](https://www.scipopt.org/scip/doc/html/group__NetworkMatrix.php)</sup> 组合矩阵识别库提供了在若干组合矩阵类中识别网络矩阵的实现。<sup>[11](https://discopt.github.io/cmr/)</sup>

存在若干推广。比内矩阵是网络矩阵的一种扩展，对于有理 \( n \times m \) 矩阵可在 \( O(n^{6} m) \) 时间内进行测试，算法输出一个表示 \( A = B^{-1} N \)，其中 \( [B\; N] \) 是双向图的节点–边关联矩阵。<sup>[12](https://arxiv.org/abs/0807.3541)</sup> 在反问题方面，寻找嵌入给定 \( \{-1, 0, +1\} \)-矩阵中的最大网络子矩阵本身就是一个优化问题，可通过带符号图上的 0–1 整数规划建模和分支切割算法来求解。<sup>[13](https://www.sciencedirect.com/science/article/pii/S0305054811000074)</sup>

## References

1. [Lap Chi Lau, R. Ravi, and Mohit Singh (2011). Iterative Methods in Combinatorial Optimization, Chapter 8: Network Matrices. Cambridge University Press.](https://www2.isye.gatech.edu/~msingh94/book/book.pdf)
2. [Graph Theory lecture notes (network matrices and Tutte's theorem, Theorem 2.18). CiteSeerX.](https://citeseerx.ist.psu.edu/document?doi=659315ab21e0a9cc9fd42156d0e59f874bc135a8&repid=rep1&type=pdf)
3. [Fabio Furini. Total unimodularity and integrality, Network Optimization lecture notes.](https://fabiofurini.github.io/network-optimization/flows/network-flow-models/total-unimodularity-and-integrality/)
4. [R. R. Thomas. Total Unimodularity and Unimodularity, M583 lecture notes, University of Washington.](https://sites.math.washington.edu/~thomas/teaching/m583_s2008_web/main.pdf)
5. [SCIP Doxygen Documentation: Network Matrix.](https://www.scipopt.org/scip/doc/html/group__NetworkMatrix.php)
6. [R. A. Brualdi and H. J. Ryser (1991). Combinatorial Matrix Theory. Cambridge University Press.](https://www.nzdr.ru/data/media/biblio/kolxoz/M/MA/MAc/Brualdi%20R.A.%2C%20Ryser%20H.J.%20Combinatorial%20matrix%20theory%20%28CUP%2C%201991%29%28ISBN%200521322650%29%28O%29%28378s%29_MAc_.pdf)
7. [L. Pitsoulis, K. Papalamprou, G. Appa, B. Kotnyek (2009). On the representability of totally unimodular matrices on bidirected graphs. arXiv:0901.0885.](https://arxiv.org/abs/0901.0885)
8. [Recognition of Generalized Network Matrices (thesis excerpt on regular matroid decomposition). CiteSeerX.](https://citeseerx.ist.psu.edu/document?doi=0ac52125e03611dd6c068ecc6a046388071ec723&repid=rep1&type=pdf)
9. [A decomposition theory for matroids. V. Testing of matrix total unimodularity. Journal of Combinatorial Theory, Series B.](https://www.sciencedirect.com/science/article/pii/0095895690900304)
10. [Network matrices (Chapter 8), Iterative Methods in Combinatorial Optimization, Cambridge Core.](https://www.cambridge.org/core/books/abs/iterative-methods-in-combinatorial-optimization/network-matrices/62DFF76A362F55690B507C582A8D91CB)
11. [CMR: Combinatorial Matrix Recognition Library.](https://discopt.github.io/cmr/)
12. [A. Musitelli (2008). Recognition of generalized network matrices. arXiv:0807.3541.](https://arxiv.org/abs/0807.3541)
13. [An exact approach to the problem of extracting an embedded network matrix. Computers & Operations Research 38 (2011) 1483–1492.](https://www.sciencedirect.com/science/article/pii/S0305054811000074)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Graph theory › Graph theory subfields and named results

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/network-matrix

English original: https://www.edgepedia.org/network-matrix
