ComplementHypergraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Hypergraphs

  

ComplementHypergraph

  

Return the complement of an hypergraph

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

ComplementHypergraph(H)

Parameters

H

-

Hypergraph

Description

• 

The command ComplementHypergraph(H) returns the complement hypergraph of H.

Terminology

• 

Complement hypergraph :  If H :=(X, Y) is a hypergraph, then the complement hypergraph of H is the hypergraph (X, Z) where Z is the set of the complements in X of the hyperedges of H.

Examples

withHypergraphs:withExampleHypergraphs:

Consider the Fan hypergraph of rank 4.

F4Fan4;VerticesF4;HyperedgesF4

F4< a hypergraph on 5 vertices with 5 hyperedges >

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

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

(1)

Draw a graphical representation of F4.

DrawF4

Compute the complement hypergraph C of of F4.

CComplementHypergraphF4&semi;VerticesC&semi;HyperedgesC

C< a hypergraph on 5 vertices with 5 hyperedges >

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

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

(2)

Draw a graphical representation of C.

DrawC

Consider these two Kuratowski hypergraphs.

K2Kuratowski1&comma;2&comma;3&comma;4&comma;5&comma;2&semi;K3Kuratowski1&comma;2&comma;3&comma;4&comma;5&comma;3

K2< a hypergraph on 5 vertices with 10 hyperedges >

K3< a hypergraph on 5 vertices with 10 hyperedges >

(3)

Draw a graphical representation of K2.

DrawK2

Draw a graphical representation of K3.

DrawK3

Observe that K3 is the complement hypergraph of K2.

CComplementHypergraphK2&semi;AreEqualC&comma;K3

C< a hypergraph on 5 vertices with 10 hyperedges >

true

(4)

Observe that K2 is the complement hypergraph of K3.

CComplementHypergraphK3&semi;AreEqualC&comma;K2

C< a hypergraph on 5 vertices with 10 hyperedges >

true

(5)

References

  

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.

Compatibility

• 

The Hypergraphs[ComplementHypergraph] command was introduced in Maple 2024.

• 

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

See Also

Hypergraphs[Hyperedges]

Hypergraphs[Hypergraph]

Hypergraphs[Vertices]

Hypergraphs[AreIsomorphic]