Hypergraphs[ExampleHypergraphs]
NonEmptyPowerSet
Return the power set of given order
Calling Sequence
Parameters
Description
Examples
References
Compatibility
NonEmptyPowerSet(S)
S
-
set
The command NonEmptyPowerSet(S) returns the hypergraph with the set S as vertex set and with all non-empty subsets of S as hyperedges.
with⁡Hypergraphs:with⁡ExampleHypergraphs:
Consider the following power set hypergraph.
P4≔NonEmptyPowerSet⁡1,2,3,4
P4≔< a hypergraph on 4 vertices with 15 hyperedges >
Draw a graphical representation of this hypergraph.
Draw⁡P4
Compute its minimal hyperedges.
M≔Min⁡P4;Vertices⁡M;Hyperedges⁡M
M≔< a hypergraph on 4 vertices with 4 hyperedges >
1,2,3,4
Compute its maximal hyperedges.
M≔Max⁡P4;Vertices⁡M;Hyperedges⁡M
M≔< a hypergraph on 4 vertices with 1 hyperedges >
Consider this other power set hypergraph.
P8≔NonEmptyPowerSet⁡1,2,3,4,5,6,7,8
P8≔< a hypergraph on 8 vertices with 255 hyperedges >
Draw⁡P8
M≔Min⁡P8;Vertices⁡M;Hyperedges⁡M
M≔< a hypergraph on 8 vertices with 8 hyperedges >
1,2,3,4,5,6,7,8
M≔Max⁡P8;Vertices⁡M;Hyperedges⁡M
M≔< a hypergraph on 8 vertices with 1 hyperedges >
Claude Berge. Hypergraphes. Combinatoires des ensembles finis. 1987, Paris, Gauthier-Villars, translated to English.
Claude Berge. Hypergraphs. Combinatorics of Finite Sets. 1989, Amsterdam, North-Holland Mathematical Library, Elsevier, translated from French.
Charles Leiserson, Liyun Li, Marc Moreno Maza and Yuzhen Xie " Parallel computation of the minimal elements of a poset." Proceedings of the 4th International Workshop on Parallel Symbolic Computation (PASCO) 2010: 53-62, ACM.
The Hypergraphs[ExampleHypergraphs][NonEmptyPowerSet] command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
Hypergraphs[Max]
Hypergraphs[Min]
Download Help Document