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

Online Help

All Products    Maple    MapleSim


Hypergraphs

  

AreEqual

  

Check whether two hypergraphs are equal or not

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

AreEqual(H1,H2)

Parameters

H1

-

Hypergraph

H2

-

Hypergraph

Description

• 

The command AreEqual(H1,H2) checks whether the hypergraphs H1 and H2 are equal or not.

Terminology

• 

Equal hypergraphs : Two hypergraphs H1 :=(X1, Y1) and H2 :=(X2, Y2) are said equal whenever X1 = X2 and Y1 = Y2 both hold.

Examples

withHypergraphs:

Create a hypergraph from its vertices and edges.

HHypergraph1,2,3,4,5,6,7,1,2,3,2,3,4,3,5,6

H< a hypergraph on 7 vertices with 4 hyperedges >

(1)

Print its vertices and edges.

VerticesH&semi;HyperedgesH

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

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

(2)

Draw a graphical representation of this hypergraph.

DrawH

Create another hypergraph from its edges.

LHypergraph1&comma;2&comma;3&comma;4&comma;5&comma;6&comma;7&comma;4&comma;5&comma;6&comma;5&comma;6&comma;7&comma;1&comma;2&comma;6

L< a hypergraph on 7 vertices with 4 hyperedges >

(3)

Print its vertices and edges.

VerticesL&semi;HyperedgesL

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

7&comma;5&comma;6&comma;1&comma;2&comma;6&comma;4&comma;5&comma;6

(4)

Draw a graphical representation of this hypergraph.

DrawL

Check whether H and L are equal.

AreEqualH&comma;L

false

(5)

Check whether H and L are isomorphic.

AreIsomorphicH&comma;L

true

(6)

Compute the transversal T hypergraph of H and the transversal TT of T.

TTransversalH&semi;TTTransversalT

T< a hypergraph on 7 vertices with 3 hyperedges >

TT< a hypergraph on 7 vertices with 3 hyperedges >

(7)

VerticesTT&semi;HyperedgesTT

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

4&comma;2&comma;3&comma;3&comma;5&comma;6

(8)

Compute the hypergraph induced by the minimal hyperedges of H.

MMinH

M< a hypergraph on 7 vertices with 3 hyperedges >

(9)

Print the vertices and edges of M.

VerticesM&semi;HyperedgesM

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

4&comma;2&comma;3&comma;3&comma;5&comma;6

(10)

Check that TT and M are equal as hypergraphs.

AreEqualTT&comma;M

true

(11)

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[AreEqual] command was introduced in Maple 2024.

• 

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

See Also

Hypergraphs[AreIsomorphic]