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

Online Help

All Products    Maple    MapleSim


Hypergraphs

  

LineGraph

  

Return the linegraph of an hypergraph

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

LineGraph(H)

Parameters

H

-

Hypergraph

Description

• 

The command LineGraph(H) returns line graph of the hypergraph H.

Terminology

• 

Line graph : If H :=(X, Y) is a hypergraph, then the line graph of H is the graph G on Y such that any two hyperedges y1, y2 of H form an edge of G if and only if y1 and y2 have a non-empty intersection.

Examples

withHypergraphs:withGraphTheory:withExampleHypergraphs:

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.

Hypergraphs:-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

Check whether H is connected.

Hypergraphs:-IsConnectedH

false

(3)

Check whether H is linear.

IsLinearH

false

(4)

Construct the line graph L of H.

LHypergraphs:-LineGraphH

LGraph 1: an undirected graph with 4 vertices, 3 edge(s), and 4 self-loop(s)

(5)

Draw a graphical representation of L.

DrawGraphL

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

MVertexEdgeIncidenceGraphH

MGraph 2: an undirected graph with 11 vertices and 9 edge(s)

(6)

Draw a graphical representation of L.

DrawGraphM

Create another hypergraph.

HLovasz3

H< a hypergraph on 6 vertices with 10 hyperedges >

(7)

Print its vertices and edges.

Hypergraphs:-VerticesH&semi;HyperedgesH

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.

DrawH

Check whether H is connected.

Hypergraphs:-IsConnectedH

true

(9)

Check whether H is linear.

IsLinearH

false

(10)

Construct the line graph L of H.

LHypergraphs:-LineGraphH

LGraph 3: an undirected graph with 10 vertices, 45 edge(s), and 10 self-loop(s)

(11)

Draw a graphical representation of L.

DrawGraphL

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

MVertexEdgeIncidenceGraphH

MGraph 4: an undirected graph with 16 vertices and 30 edge(s)

(12)

Draw a graphical representation of L.

DrawGraphM

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

• 

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

See Also

Hypergraphs[IsLinear]

Hypergraphs[IsConnected]

Hypergraphs[LineGraph]

Hypergraphs[VertexEdgeIncidenceGraph]