Close
Close window
PartiallyOrderedSets/MaximalElements - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : PartiallyOrderedSets/MaximalElements
[フレーム] [フレーム]

PartiallyOrderedSets

MaximalElements

returns the maximal elements of a poset

Calling Sequence

MaximalElements(P)

Parameters

Description

The command MaximalElements(P) returns the set of maximal elements of the partially ordered set P.

Remarks

MaximalElements will generate and store the transitive closure of 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.

From now on, we fix a poset (P, <=). Two elements a and b of P are said comparable if either a <= b or b <= a holds, otherwise a and b are said incomparable.

The element b of Pcovers 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, <=).

The element a of P is a maximal element of (P, <=) if for no element b of P the element a is strictly less than b. The element a of P is a minimal element of (P, <=) if no element b of P is strictly less than a. Observe that if P is not empty then it necessarily admits at least one maximal element and at least one minimal element.

Examples

>

withPartiallyOrderedSets&colon;

>

leq`<=`&colon;

Create a poset from a set and a non-strict partial order

>

S1&comma;2&comma;3&comma;4&comma;5&colon;poset1PartiallyOrderedSetS&comma;leq

poset1< a poset with 5 elements >

(1)

Display this poset

>

DrawGraphposet1

Compute the maximal elements of this poset

>

MaximalElementsposet1

5

(2)

Create a poset from a set and a non-strict partial order

>

divisibilityx&comma;yiremy&comma;x=0&colon;T3&comma;4&comma;5&comma;6&comma;7&comma;8&comma;9&colon;

>

poset2PartiallyOrderedSetT&comma;divisibility

poset2< a poset with 7 elements >

(3)

Display this poset

>

DrawGraphposet2

Compute the maximal elements of this poset

>

MaximalElementsposet2

5&comma;6&comma;7&comma;8&comma;9

(4)

Create a poset from a set and an adjacency matrix of a partial order regarded as a directed graph

>

adjMatrix4Matrix1&comma;1&comma;1&comma;1&comma;1&comma;0&comma;1&comma;1&comma;1&comma;1&comma;0&comma;0&comma;1&comma;1&comma;1&comma;0&comma;0&comma;0&comma;1&comma;1&comma;0&comma;0&comma;0&comma;0&comma;1

adjMatrix41111101111001110001100001

(5)
>

poset4PartiallyOrderedSetconvertS&comma;list&comma;adjMatrix4

poset4< a poset with 5 elements >

(6)

Display this poset

>

DrawGraphposet4

Compute the maximal elements of this poset

>

MaximalElementsposet4

5

(7)

Create a poset from a set and an adjacency list of a partial order regarded as a directed graph

>

adjList5map2map&comma;`+`&comma;Array1&comma;4&comma;7&comma;2&comma;6&comma;3&comma;4&comma;5&comma;6&comma;7&comma;2

adjList53&comma;6&comma;94&comma;856789

(8)
>

poset5PartiallyOrderedSetconvertT&comma;list&comma;adjList5

poset5< a poset with 7 elements >

(9)

Display this poset

>

DrawGraphposet5

Compute the maximal elements of this poset

>

MaximalElementsposet5

5&comma;6&comma;7&comma;8&comma;9

(10)

Create a poset from a set and a directed graph

>

GGraphTheory:-Graphdirected&comma;1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;1&comma;1&comma;1&comma;2&comma;1&comma;3&comma;1&comma;4&comma;1&comma;5&comma;1&comma;6&comma;2&comma;2&comma;2&comma;4&comma;2&comma;6&comma;3&comma;3&comma;3&comma;5&comma;3&comma;6&comma;4&comma;4&comma;4&comma;6&comma;5&comma;5&comma;5&comma;6&comma;6&comma;6

GGraph 1: a directed graph with 6 vertices, 11 arcs, and 6 self-loops

(11)
>

poset6PartiallyOrderedSetG

poset6< a poset with 6 elements >

(12)

Display this poset

>

DrawGraphposet6

Compute the maximal elements of this poset

>

MaximalElementsposet6

6

(13)

Define a polyhedral set and get its dimension

>

tPolyhedralSets:-ExampleSets:-Octahedron

t&lcub;Coordinates&colon;x1&comma;x2&comma;x3Relations&colon;x1x2x31&comma;x1x2+x31&comma;x1+x2x31&comma;x1+x2+x31&comma;x1x2x31&comma;x1x2+x31&comma;x1+x2x31&comma;x1+x2+x31

(14)
>

dPolyhedralSets:-Dimensiont

d3

(15)

Collect the faces of this polyhedral set

>

t_facesseqopPolyhedralSets:-Facest&comma;dimension=i&comma;i=0..d&colon;

>

t_facest_facesunionPolyhedralSets:-ExampleSets:-EmptySetd&colon;

>

FLconvertt_faces&comma;list&colon;

Construct the face lattice of that polyhedral set

>

inclusion := proc(x,y) PolyhedralSets:-`subset`(FL[x],FL[y]) end proc:

>

polyhedral_posetPartiallyOrderedSetseqi&comma;i=1..nopsFL&comma;inclusion

polyhedral_poset< a poset with 28 elements >

(16)

Display this poset

>

DrawGraphpolyhedral_poset

Compute the maximal elements of this poset

>

MaximalElementspolyhedral_poset

11

(17)

Create a poset from a set and an adjacency matrix of a partial order regarded as a directed graph

>

MMatrix1&comma;1&comma;1&comma;1&comma;1&comma;0&comma;1&comma;1&comma;0&comma;1&comma;0&comma;0&comma;1&comma;0&comma;1&comma;0&comma;0&comma;0&comma;1&comma;1&comma;0&comma;0&comma;0&comma;0&comma;1&colon;

>

poset9PartiallyOrderedSetseq1..5&comma;M

poset9< a poset with 5 elements >

(18)

Display this poset

>

DrawGraphposet9

Compute the maximal elements of this poset

>

MaximalElementsposet9

5

(19)

Create a poset from a set and a non-strict partial order

>

Z1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;10&comma;12&comma;15&comma;20&comma;30&comma;60

Z1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;10&comma;12&comma;15&comma;20&comma;30&comma;60

(20)
>

poset10PartiallyOrderedSetZ&comma;divisibility

poset10< a poset with 12 elements >

(21)

Display this poset

>

DrawGraphposet10

Compute the maximal elements of this poset

>

MaximalElementsposet10

60

(22)

Create a poset from a set and a non-strict partial order

>

ZZ1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;12&comma;15&comma;60

ZZ1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;12&comma;15&comma;60

(23)
>

poset11PartiallyOrderedSetZZ&comma;divisibility

poset11< a poset with 9 elements >

(24)

Display this poset

>

DrawGraphposet11

Compute the maximal elements of this poset

>

MaximalElementsposet11

60

(25)

References

Richard P. Stanley: Enumerative Combinatorics 1. 1997, Cambridge Studies in Advanced Mathematics. Vol. 49. Cambridge University Press.

Compatibility

The PartiallyOrderedSets[MaximalElements] command was introduced in Maple 2025.

For more information on Maple 2025 changes, see Updates in Maple 2025 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /