Close
Close window
PartiallyOrderedSets/ConnectedComponents - 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/ConnectedComponents
[フレーム] [フレーム]

PartiallyOrderedSets

ConnectedComponents

returns the connected components of a poset

Calling Sequence

ConnectedComponents(P)

Parameters

Description

The command ConnectedComponents(P) returns as a set of sets the connected components 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.

The connected components of a poset are the connected components of its associated directed graph

Examples

>

withPartiallyOrderedSets&colon;

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

>

V&colon;leq`<=`&colon;empty_posetPartiallyOrderedSetV&comma;leq

empty_poset< a poset with 0 elements >

(1)

Compute the connected components of this poset

>

ConnectedComponentsempty_poset

(2)

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 >

(3)

Display this poset

>

DrawGraphposet1

Compute the connected components of this poset

>

ConnectedComponentsposet1

1&comma;2&comma;3&comma;4&comma;5

(4)

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 >

(5)

Display this poset

>

DrawGraphposet2

Compute the connected components of this poset

>

ConnectedComponentsposet2

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

(6)

References

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

Compatibility

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

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


Download Help Document

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