# 哈斯图

哈斯图（Hasse diagram）是有限偏序集（poset）的一种画法：每个元素表现为一个顶点，当且仅当一个元素覆盖另一个元素时，两点之间连一条边，较大的元素画在页面上方较高的位置。箭头与自反环被省略，由传递性蕴含的边也被隐去，因此这幅图展示的是偏序集的覆盖关系，并隐含了向上的方向<sup>[1](https://archive.lib.msu.edu/crcmath/math/math/h/h112.htm)</sup>。哈斯图也被称为向上图<sup>[1](https://archive.lib.msu.edu/crcmath/math/math/h/h112.htm)</sup>或序图<sup>[2](https://trotter.math.gatech.edu/math-3012/3012-Lecture-13.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 描绘的内容 | 偏序集的覆盖关系：每个元素一个点，当且仅当一个元素覆盖另一个元素时在两点之间画一条线段，并隐含向上的方向<sup>[1](https://archive.lib.msu.edu/crcmath/math/math/h/h112.htm)</sup> |
| 覆盖关系 | 若 \( a \preceq b \) 且不存在元素 \( c \) 满足 \( a \preceq c \preceq b \)，则称 \( b \) 覆盖 \( a \)<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup> |
| 省略的内容 | 自反环与由传递性蕴含的边；所有比较关系都可通过沿向上的路径追踪恢复 |
| 标准例子 | 30 的因数上的整除关系；幂集上的子集包含关系；群的子群格<sup>[4](https://ndl.ethernet.edu.et/bitstream/123456789/77917/1/179.pdf)</sup><sup> • </sup><sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup><sup> • </sup><sup>[5](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/An_Inquiry-Based_Approach_to_Abstract_Algebra_%28Ernst%29/03%3A_Subgroups_and_Isomorphisms/3.02%3A_Subgroup_Lattices)</sup> |
| 信息含量 | 对于局部有限的偏序集，哈斯图编码了重现该序关系所需的最少信息<sup>[6](https://ncatlab.org/nlab/show/Hasse%2Bdiagram)</sup> |
| 软件 | SageMath 以传递约简的有向无环图形式返回哈斯图；R 包 hasseDiagram 可绘制此类图<sup>[7](https://sagemath.gitlab.io/documentation/html/en/reference/combinat/sage/combinat/posets/hasse_diagram.html)</sup><sup> • </sup><sup>[8](https://github.com/kciomek/hasseDiagram)</sup> |
| 得名于 | 赫尔穆特·哈斯（Helmut Hasse，1898–1979），德国数论学家，担任《克雷尔杂志》主编长达 50 年<sup>[9](https://mathshistory.st-andrews.ac.uk//Biographies/Hasse/)</sup> |

## 覆盖关系

这张图建立在一个定义之上。在偏序集 \((A, \preceq)\) 中，若 \( a \preceq b \) 且不存在其他元素 \( c \in A \) 同时满足 \( a \preceq c \) 与 \( c \preceq b \)，则称元素 \( b \) 覆盖 \( a \)<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup>。在通常序下的整数中，2 覆盖 1，因为二者之间没有其他元素；而 3 不覆盖 1，因为 \( 1 \leq 2 \leq 3 \)<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup>。等价地说，当 \( x < y \) 且不存在 \( z \) 满足 \( x < z < y \) 时，\( y \) 覆盖 \( x \)<sup>[10](https://crypto.stanford.edu/pbc/notes/commalg/poset.html)</sup>。

偏序集本身是一个集合配上一个自反、反对称且传递的二元关系<sup>[10](https://crypto.stanford.edu/pbc/notes/commalg/poset.html)</sup>。完整的关系所包含的元素对可能远多于覆盖关系，这正是该图之所以经济的原因：覆盖边的传递闭包连同自反对一起，便能重构整个序。

## 构造规则

教科书中的表述对偏序集 \((A, \preceq)\) 一致给出三条规则<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup>：

1. 每个元素 \( a \in A \) 表示为一个点、圆圈或顶点。
2. 对于任意满足 \( a \preceq b \) 的 \( b \)，\( a \) 的顶点画在 \( b \) 的顶点上方。
3. 当且仅当 \( b \) 覆盖 \( a \) 时，用一条线段连接 \( a \) 与 \( b \) 的顶点。

LibreTexts 的表述明确列出了省略的情形：若 \((a,b)\) 属于该关系，则将 \( a \) 画在 \( b \) 下方并在二者之间连线，除非 \( a = b \)（自反对不画），或者该对已通过某个中间元素 \( c \) 由传递性蕴含<sup>[11](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Discrete_Mathematics_for_Computer_Science_%28Fitch%29/04%3A_Relations/4.04%3A_Partially_Ordered_Sets)</sup>。用图论的术语说，所得结果是一个传递约简的、有向的、无环的图，不含环，也不含重边<sup>[7](https://sagemath.gitlab.io/documentation/html/en/reference/combinat/sage/combinat/posets/hasse_diagram.html)</sup>。

## 读图

从 \( x \) 到 \( y \) 的一条向上边路径意味着 \( x \preceq y \)；两个元素可比，当且仅当沿某一方向存在这样的路径。一个顶点画在另一个顶点上方却无路径相连，则表示二者不可比。在按包含关系排序的 \(\{a,b,c\}\) 的幂集中，\(\{b\}\) 与 \(\{a,c\}\) 不可比，因为二者之间没有连线或向上的路径；而 \(\{c\} \subseteq \{a,b,c\}\) 则通过覆盖关系 \(\{c\} \subseteq \{a,c\}\) 与 \(\{a,c\} \subseteq \{a,b,c\}\) 成立<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup>。

这张图还能让人一眼看出序论性质：极小元是下方没有任何元素的那些点，极大元是上方没有任何元素的那些点，而最小上界与最大下界则可在公共的上方顶点与下方顶点中定位<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup><sup> • </sup><sup>[11](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Discrete_Mathematics_for_Computer_Science_%28Fitch%29/04%3A_Relations/4.04%3A_Partially_Ordered_Sets)</sup>。

## 标准例子

**整除关系。** 对于按整除关系排序的 30 的因数，图中 30 位于顶部；6、10、15 在下一层；2、3、5 再往下一层；1 在底部。边从 30 连向 6、10、15，从 6 连向 2 和 3，从 10 连向 2 和 5，从 15 连向 3 和 5，并从 2、3、5 向下连向 1<sup>[4](https://ndl.ethernet.edu.et/bitstream/123456789/77917/1/179.pdf)</sup>。SageMath 中 12 的因数格同样具有覆盖关系 \([1,2], [1,3], [2,4], [2,6], [3,6], [4,12], [6,12]\)<sup>[12](https://www.sagemath.org/doc/reference/combinat/sage/combinat/posets/posets.html)</sup>。

**子集。** \(\{a,b,c\}\) 的幂集在 \(\subseteq\) 下给出八顶点的立方体图，\(\varnothing\) 为极小元，全集为极大元<sup>[3](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)</sup>。更一般地，对应于韦恩图的格是布尔格，\( n \) 个标签对应 \( 2^{n} \) 个概念，其哈斯图构成超立方体<sup>[13](https://link.springer.com/chapter/10.1007/978-3-030-72308-8_5)</sup>。

**子群。** 一个群的子群按包含关系排序构成一个格，通常画成哈斯图：平凡子群在底部，整个群在顶部，当 \( H \) 与 \( K \) 之间没有严格居中的子群时，从 \( H \) 到 \( K \) 连一条向上的边。存在从 \( H \) 到 \( K \) 的向上路径，当且仅当 \( H \leq K \)<sup>[5](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/An_Inquiry-Based_Approach_to_Abstract_Algebra_%28Ernst%29/03%3A_Subgroups_and_Isomorphisms/3.02%3A_Subgroup_Lattices)</sup>。对于克莱因四元群 \( V_4 \)，三个 2 阶子群之间没有边，因为其中任何一个都不包含另一个<sup>[5](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/An_Inquiry-Based_Approach_to_Abstract_Algebra_%28Ernst%29/03%3A_Subgroups_and_Isomorphisms/3.02%3A_Subgroup_Lattices)</sup>。

## 覆盖图与哈斯图之别

威廉·T·特罗特（William T. Trotter）是佐治亚理工学院荣休数学教授，他区分了两个相关对象。偏序集 \( P \) 的覆盖图是以 \( P \) 的点为顶点、当两个不同点中的一个覆盖另一个时便将二者连边的图。序图，或称哈斯图，则是该图在平面上的画法，传统上使用直线段，并且只要 \( y \) 覆盖 \( x \)，就将 \( y \) 画得比 \( x \) 高<sup>[2](https://trotter.math.gatech.edu/math-3012/3012-Lecture-13.pdf)</sup>。同一个覆盖图可以属于若干个不同的偏序集，因此垂直方向的布置承载了裸图所不具备的部分序信息<sup>[2](https://trotter.math.gatech.edu/math-3012/3012-Lecture-13.pdf)</sup>。

## 计算与绘制

软件将哈斯图视为一种数据结构。SageMath 的 `hasse_diagram()` 返回一个有向图，只要 \( v \) 覆盖 \( u \)，就有一条从 \( u \) 到 \( v \) 的边；其内部的 `HasseDiagram` 类被文档描述为传递约简的、有向的、无环的图，不含环，也不含重边<sup>[7](https://sagemath.gitlab.io/documentation/html/en/reference/combinat/sage/combinat/posets/hasse_diagram.html)</sup><sup> • </sup><sup>[12](https://www.sagemath.org/doc/reference/combinat/sage/combinat/posets/posets.html)</sup>。R 包 hasseDiagram 绘制有限偏序集的传递约简<sup>[8](https://github.com/kciomek/hasseDiagram)</sup>。有一种实现计算传递约简的方式是：先计算图的传递闭包，采用 Aho、Garey 与 Ullman（1972）的经典方法，然后在每次编辑操作后更新约简与拓扑序<sup>[14](https://library.apsce.net/index.php/ICCE/article/download/241/211/411)</sup>。

绘制理论追问紧凑的图何时存在。当以分解形式给出一个串并联偏序时，可以在线性时间内、在 O(n) × O(n) 的网格内，生成其一个合流图，其交汇点数量与输入规模成线性关系<sup>[15](https://arxiv.org/abs/1108.5361)</sup>。在较小规模下，手工枚举也是可行的：所有元素数不超过 7 的非同构偏序集的哈斯图都已被编目，而 10 元素偏序集的数目正是借助这些目录、在没有计算机辅助的情况下算出的<sup>[16](https://arxiv.org/abs/1710.10343)</sup>。

## 应用

除了离散数学课程之外，凡是对包含层级进行分析的地方都会出现哈斯图。在形式概念分析——鲁道夫·维勒（Rudolf Wille）于 20 世纪 80 年代提出的知识表示理论——中，形式背景的概念格被画成哈斯图，其节点是概念，边连接子概念序中相邻的概念；属性之间的逻辑蕴涵可以从图中读出，因为子概念的属性蕴涵其超概念的属性<sup>[13](https://link.springer.com/chapter/10.1007/978-3-030-72308-8_5)</sup>。在代数中，子群格、环的理想格以及多面体的面偏序集，都惯常通过其哈斯图来呈现<sup>[5](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/An_Inquiry-Based_Approach_to_Abstract_Algebra_%28Ernst%29/03%3A_Subgroups_and_Isomorphisms/3.02%3A_Subgroup_Lattices)</sup><sup> • </sup><sup>[17](https://doc-release--sagemath.netlify.app/html/en/reference/discrete_geometry/sage/geometry/polyhedron/base4)</sup>。

## 名称的由来

这张图以赫尔穆特·哈斯（Helmut Hasse，1898 年 8 月 25 日—1979 年 12 月 26 日）命名。他是一位德国数学家，历史学家哈罗德·爱德华兹（Harold Edwards）称其为二十世纪重要的数学家之一，其成就横跨研究、阐述、教学与编辑工作；哈斯担任《克雷尔杂志》主编长达 50 年<sup>[9](https://mathshistory.st-andrews.ac.uk//Biographies/Hasse/)</sup>。

## References

1. [Hasse Diagram, CRC Encyclopedia of Mathematics (Michigan State University archive)](https://archive.lib.msu.edu/crcmath/math/math/h/h112.htm)
2. [Order Diagrams and Cover Graphs, Math 3012 lecture notes, W. T. Trotter, Georgia Tech](https://trotter.math.gatech.edu/math-3012/3012-Lecture-13.pdf)
3. [2.2. Relations, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter2/relations.html)
4. [Discrete Mathematical Structures (course text), National Digital Library of India](https://ndl.ethernet.edu.et/bitstream/123456789/77917/1/179.pdf)
5. [3.2: Subgroup Lattices, Mathematics LibreTexts (Dana Ernst)](https://math.libretexts.org/Bookshelves/Abstract_and_Geometric_Algebra/An_Inquiry-Based_Approach_to_Abstract_Algebra_%28Ernst%29/03%3A_Subgroups_and_Isomorphisms/3.02%3A_Subgroup_Lattices)
6. [Hasse diagram, nLab](https://ncatlab.org/nlab/show/Hasse%2Bdiagram)
7. [Hasse diagrams of posets, Sage 9.4 Reference Manual](https://sagemath.gitlab.io/documentation/html/en/reference/combinat/sage/combinat/posets/hasse_diagram.html)
8. [hasseDiagram: R package for drawing Hasse diagrams, GitHub](https://github.com/kciomek/hasseDiagram)
9. [Helmut Hasse (1898–1979), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Biographies/Hasse/)
10. [Posets, Commutative Algebra notes, Stanford University](https://crypto.stanford.edu/pbc/notes/commalg/poset.html)
11. [4.4: Partially Ordered Sets, Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Discrete_Mathematics_for_Computer_Science_%28Fitch%29/04%3A_Relations/4.04%3A_Partially_Ordered_Sets)
12. [Finite posets, SageMath Reference Manual: Combinatorics](https://www.sagemath.org/doc/reference/combinat/sage/combinat/posets/posets.html)
13. [Set Visualisations with Euler and Hasse Diagrams, Springer](https://link.springer.com/chapter/10.1007/978-3-030-72308-8_5)
14. [Competence structure editor paper, APSCE library](https://library.apsce.net/index.php/ICCE/article/download/241/211/411)
15. [Confluent Hasse diagrams, arXiv:1108.5361](https://arxiv.org/abs/1108.5361)
16. [Hasse diagrams of posets with up to 7 elements, arXiv:1710.10343](https://arxiv.org/abs/1710.10343)
17. [Hasse diagram of the face poset of a polyhedron, SageMath documentation](https://doc-release--sagemath.netlify.app/html/en/reference/discrete_geometry/sage/geometry/polyhedron/base4)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Algebraic combinatorics and graph theory › Partially ordered sets and combinatorial lattice theory

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/hasse-diagram

English original: https://www.edgepedia.org/hasse-diagram
