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

Online Help

Hypergraphs

  

IsLinear

  

Check whether an hypergraph is linear or not

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

IsRegular(H)

Parameters

H

-

Hypergraph

Description

• 

The command IsLinear(H) checks whether the hypergraph H is linear or not.

Terminology

• 

Linear :  A hypergraph H is said linear if the intersection of any two distinct  hyperedges of H is either empty or consists of a single element.

Examples

with(Hypergraphs): with(GraphTheory): with(ExampleHypergraphs):

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 >

(1)

Print its vertices and edges.

Hypergraphs:-Vertices(H); Hyperedges(H);

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.

Draw(H);

Check whether H is connected.

Hypergraphs:-IsConnected(H);

false

(3)

Check whether H is linear.

IsLinear(H);

false

(4)

Construct the line graph L of H.

L := Hypergraphs:-LineGraph(H);

LGraph 1: an undirected graph with 4 vertices, 3 edges, and 4 self-loops

(5)

Draw a graphical representation of L.

DrawGraph(L);

Construct the vertex-edge-incidence graph M of H.

M := VertexEdgeIncidenceGraph(H);

MGraph 2: an undirected graph with 11 vertices and 9 edges

(6)

Draw a graphical representation of L.

DrawGraph(M);

Create another hypergraph.

H := Lovasz(3);

H< a hypergraph on 6 vertices with 10 hyperedges >

(7)

Print its vertices and edges.

Hypergraphs:-Vertices(H); Hyperedges(H);

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

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

(8)

Draw a graphical representation of this hypergraph.

Draw(H);

Check whether H is connected.

Hypergraphs:-IsConnected(H);

true

(9)

Check whether H is linear.

IsLinear(H);

false

(10)

Construct the line graph L of H.

L := Hypergraphs:-LineGraph(H);

LGraph 3: an undirected graph with 10 vertices, 45 edges, and 10 self-loops

(11)

Draw a graphical representation of L.

DrawGraph(L);

Construct the vertex-edge-incidence graph M of H.

M := VertexEdgeIncidenceGraph(H);

MGraph 4: an undirected graph with 16 vertices and 30 edges

(12)

Draw a graphical representation of L.

DrawGraph(M);

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

• 

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

See Also

Hypergraphs[IsConnected]

Hypergraphs[LineGraph]

Hypergraphs[VertexEdgeIncidenceGraph]

 


Download Help Document