Hypergraphs
PartialHypergraph
Construct the hypergraph induced by a subset of the hyperedges of another hypergraph
Calling Sequence
Parameters
Description
Examples
References
Compatibility
PartialHypergraph(H,f)
H
-
Hypergraph
f
procedure
The command PartialHypergraph(H,f) returns the hypergraph L whose vertex set is that of H and whose hyperedges are the hyperedges e of H for which f(e) is true.
Assumptions
The procedure f maps every subset of the vertex set of H to a boolean value.
Terminology
Partial hypergraph : If H :=(X, Y) is a hypergraph and Z is a subset of Y, then (X, Z) is called the partial hypergraph of H induced by Z.
with⁡Hypergraphs:
Create a hypergraph from its vertices and edges.
H≔Hypergraph⁡1,2,3,4,5,6,7,1,2,3,2,3,4,3,5,6
H≔< a hypergraph on 7 vertices with 4 hyperedges >
Print its vertices and edges.
Vertices⁡H;Hyperedges⁡H
1,2,3,4,5,6,7
4,2,3,1,2,3,3,5,6
Draw a graphical representation of this hypergraph.
Draw⁡H
Create the subhypergraph of H induced by {1,2,3,4}.
S≔SubHypergraph⁡H,1,2,3,4
S≔< a hypergraph on 4 vertices with 3 hyperedges >
Vertices⁡S;Hyperedges⁡S
1,2,3,4
4,2,3,1,2,3
Draw⁡S
Create the partial hypergraph of H with hyperedges of even size.
P≔PartialHypergraph⁡H,s↦irem⁡numelems⁡s,2=0
P≔< a hypergraph on 7 vertices with 1 hyperedges >
Vertices⁡P;Hyperedges⁡P
2,3
Draw⁡P
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[PartialHypergraph] command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
See Also
Hypergraphs[AddHyperedges]
Hypergraphs[AddVertices]
Hypergraphs[Hyperedges]
Hypergraphs[Hypergraph]
Hypergraphs[PartialHypergraph]
Hypergraphs[SubHypergraph]
Download Help Document