PartiallyOrderedSets
TransitiveClosure
returns an adjacency matrix of the directed graph associated with a poset
Calling Sequence
Parameters
Description
Examples
References
Compatibility
TransitiveClosure(P)
P
-
PartiallyOrderedSet
The command TransitiveClosure(P) returns as an adjacency matrix the transitive closure of the partially ordered set P.
Terminology
A partially ordered set, or poset for short, is a pair (P, <=) where P is a set and <= is a partial order on P. The poset (P, <=) defines a directed graph whose vertices are the elements of P and (a,b) is a directed edge whenever a <= b holds. Conversely, a poset can be defined from a directed graph, assuming that the defined binary relation is anti-symmetric, and transitive, and, either reflexive, or irreflexive.
From now on, we fix a poset (P, <=).
The element a of P is strictly less than the element b of P if a <= b and a \342\211\240 b both hold.
The element b of P covers the element a of P if a is strictly less than b and for no element c of P, distinct from both a and b, both a <= c and c <= b hold.
The relation b covers a defines a homogeneous binary relation on P which is the transitive reduction of (P, <=). This is also a directed acyclic graph on P often refers as the Hasse diagram of (P, <=).
with⁡PartiallyOrderedSets:
Create a poset from a set and a non-strict partial order
S≔1,2,3,4,5:leq≔`<=`:poset1≔PartiallyOrderedSet⁡S,leq
poset1≔< a poset with 5 elements >
Display this poset
DrawGraph⁡poset1
Compute an adjacency matrix of the transitive closure of this partial order, which is itself in this case
TransitiveClosure⁡poset1
1111101111001110001100001
Create a poset from a set and a strict partial order
lneq≔`<`:poset1_1≔PartiallyOrderedSet⁡S,lneq
poset1_1≔< a poset with 5 elements >
DrawGraph⁡poset1_1
Compute an adjacency matrix of the transitive closure of this partial order
TransitiveClosure⁡poset1_1
divisibility≔x,y↦irem⁡y,x=0:T≔3,4,5,6,7,8,9:
poset2≔PartiallyOrderedSet⁡T,divisibility
poset2≔< a poset with 7 elements >
DrawGraph⁡poset2
TransitiveClosure⁡poset2
1001001010001000100000001000000010000000100000001
divisibNE≔x,y↦irem⁡y,x=0andy≠x:
poset2_1≔PartiallyOrderedSet⁡T,divisibNE,reflexive=checkfalse
poset2_1≔< a poset with 7 elements >
DrawGraph⁡poset2_1
TransitiveClosure⁡poset2_1
Richard P. Stanley: Enumerative Combinatorics 1. 1997, Cambridge Studies in Advanced Mathematics. Vol. 49. Cambridge University Press.
The PartiallyOrderedSets[TransitiveClosure] command was introduced in Maple 2025.
For more information on Maple 2025 changes, see Updates in Maple 2025.
See Also
PartiallyOrderedSets[ToGraph]
PartiallyOrderedSets[TransitiveClosure]
PartiallyOrderedSets[TransitiveReduction]
GraphTheory[DrawGraph]
Download Help Document