made with Mathematica technology MathWorld

Line Graph
DOWNLOAD Mathematica Notebook Contribute to this entry
LineGraph

A line graph L(G) (also called an interchange graph) of a graph G is obtained by associating a vertex with each edge of the graph and connecting two vertices with an edge iff the corresponding edges of G meet at one or both endpoints. An example graph (black) and its corresponding line graph (red) are illustrated above.

Line graphs are implemented as LineGraph[g] in the Mathematica package Combinatorica`) . Precomputed line graph identifications of many named graphs can be obtained in Mathematica using GraphData[graph, "LineGraphName"].

LineGraphs

Taking the line graph twice does not return the original graph unless the line graph of a graph G is isomorphic to G itself. In fact, The only connected graph that is isomorphic to its line graph is a cycle graph C_n for n>=3 (Skiena 1990, p. 137). The numbers of not-necessarily connected simple graphs that are isomorphic to their lines graphs for n=1, 2, ... are 0, 0, 1, 1, 1, 2, 2, 3, 4, ..., illustrated above.

The following table summarizes some named graphs and their corresponding line graphs.

GL(G)
claw graph K_(1,3)triangle graph C_3
complete bipartite graph K_(2,3)prism graph Y_3
cubical graphcuboctahedral graph
cycle graph C_ncycle graph C_n
dodecahedral graphicosidodecahedral graph
path graph P_2singleton graph K_1
path graph P_npath graph P_(n-1)
square graph C_4square graph C_4
star graph S_5tetrahedral graph K_4
star graph S_6pentatope graph K_5
star graph S_ncomplete graph K_(n-1)
tetrahedral graph K_4octahedral graph
triangle graph C_3triangle graph C_3

The line graph of a graph with n nodes, e edges, and vertex degrees d_i contains n^'=e nodes and

 e^'=1/2sum_(i=1)^nd_i^2-e

edges (Skiena 1990, p. 137). The incidence matrix C of a graph and adjacency matrix L of its line graph are related by

 L=C^(T)C-2I,

where I is the identity matrix (Skiena 1990, p. 136).

NonLineGraphs

A graph is a line graph iff if does not contain any of the above nine graphs as an induced subgraph (van Rooij and Wilf 1965; Beineke 1968; Skiena 1990, p. 138). These nine graphs are implemented in Mathematica as GraphData["NonLineSubgraph"]. Of the nine, one has four nodes (the claw graph = star graph S_4 = complete bipartite graph K_(1,3)), two have five nodes, and six have six nodes (including the wheel graph W_6).

Whitney (1932) showed that, with the exception of K_3 and K_(1,3), any two connected graphs with isomorphic line graphs are isomorphic (Skiena 1990, p. 138).

The line graph of an Eulerian graph is both Eulerian and Hamiltonian (Skiena 1990, p. 138). More information about cycles of line graphs is given by Harary and Nash-Williams (1965) and Chartrand (1968).

SEE ALSO: Total Graph

REFERENCES:

Beineke, L. W. "Derived Graphs and Digraphs." In Beiträge zur Graphentheorie (Ed. H. Sachs, H. Voss, and H. Walther). Leipzig, Germany: Teubner, pp. 17-33, 1968.

Chartrand, G. "On Hamiltonian Line Graphs." Trans. Amer. Math. Soc. 134, 559-566, 1968.

Harary, F. Graph Theory. Reading, MA: Addison-Wesley, 1994.

Harary, F. and Nash-Williams, C. J. A. "On Eulerian and Hamiltonian Graphs and Line Graphs." Canad. Math. Bull. 8, 701-709, 1965.

Saaty, T. L. and Kainen, P. C. "Line Graphs." §4-3 in The Four-Color Problem: Assaults and Conquest. New York: Dover, pp. 108-112, 1986.

Skiena, S. "Line Graph." §4.1.5 in Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, pp. 128 and 135-139, 1990.

van Rooij, A. and Wilf, H. "The Interchange Graph of a Finite Graph." Acta Math. Acad. Sci. Hungar. 16, 263-269, 1965.

Whitney, H. "Congruent Graphs and the Connectivity of Graphs." Amer. J. Math. 54, 150-168, 1932.




CITE THIS AS:

Weisstein, Eric W. "Line Graph." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/LineGraph.html

The Wolfram Demonstrations Project Browse Topics View Latest
JUST RELEASED: Wolfram Mathematica 7