Skip to content

A4 — Line graphs, connected components, trees and cycles

Reading: Godsil & Royle, §1.7.

A line graph turns the edges of an existing graph into vertices. Throughout this lesson graphs are finite, simple and undirected.

Definition

The vertices of L(X)L(X) are the edges of XX. Two distinct vertices of L(X)L(X) are adjacent if the corresponding edges share an endpoint in XX.

For the path a−b−c−da-b-c-d, let e1={a,b}e_1=\{a,b\}, e2={b,c}e_2=\{b,c\}, e3={c,d}e_3=\{c,d\}. Edges e1,e2e_1,e_2 share bb, and e2,e3e_2,e_3 share cc, but e1,e3e_1,e_3 share no endpoint. Thus L(P4)≅P3L(P_4)\cong P_3.

For the star K1,4K_{1,4}, every edge shares the centre, so the line graph is K4K_4. For the cycle C5C_5, every edge meets exactly the preceding and succeeding edges, so the line graph is another five-cycle.

Theorem
L(Pn)≅Pn−1(n≥2),L(K1,n)≅Kn(n≥1),L(Cn)≅Cn(n≥3).\boxed{\begin{aligned}L(P_n)&\cong P_{n-1}\quad(n\geq2),\\L(K_{1,n})&\cong K_n\quad(n\geq1),\\L(C_n)&\cong C_n\quad(n\geq3).\end{aligned}}

Line graph laboratory

Original graph1234X:v=4,e=3X:\quad v=4,e=3
Line graphe1e2e3L(X):v=3,e=2L(X):\quad v=3,e=2
PropertyOriginalLine graph
Degree sequence2, 2, 1, 12, 1, 1

Different orders imply non-isomorphism.

Explore the triangle with a tail. Both it and its line graph have four vertices and four edges, but the degree sequences differ. Equality of order and size does not prove isomorphism.

Let n=∣V(X)∣n=|V(X)| and m=∣E(X)∣m=|E(X)|. Each edge becomes exactly one vertex, so

Theorem
∣V(L(X))∣=m.\boxed{|V(L(X))|=m.}

If X≅L(X)X\cong L(X), then necessarily n=mn=m.

For an edge e={u,v}e=\{u,v\}, there are deg⁡X(u)−1\deg_X(u)-1 other edges incident with uu and deg⁡X(v)−1\deg_X(v)-1 other edges incident with vv. These sets are disjoint because the graph is simple. Therefore,

Theorem
deg⁡L(X)(e)=deg⁡X(u)+deg⁡X(v)−2.\boxed{\deg_{L(X)}(e)=\deg_X(u)+\deg_X(v)-2.}

For example, endpoint degrees 3 and 4 give line graph degree 5.

For a non-empty kk-regular graph with k≥1k\geq1, its line graph is (2k−2)(2k-2)-regular. This is Lemma 1.7.1 in Godsil & Royle. In particular, valency two is unchanged by the transformation.

At a vertex of degree dd, every pair of incident edges forms an adjacency in the line graph. These edges become a clique KdK_d. The number of pairs is (d2)\binom d2.

Two distinct edges in a simple graph cannot share both endpoints, so summing over all vertices does not double-count:

Theorem
∣E(L(X))∣=∑v∈V(X)(deg⁡X(v)2).\boxed{|E(L(X))|=\sum_{v\in V(X)}\binom{\deg_X(v)}2.}

Example: P5P_5 has degrees 1,2,2,2,11,2,2,2,1. The sum is 0+1+1+1+0=30+1+1+1+0=3, in agreement with L(P5)≅P4L(P_5)\cong P_4.

A graph is connected when a path exists between every pair of vertices. A component is a maximal connected subgraph. The symbol ⊔\sqcup denotes disjoint union.

Since edges from distinct components cannot meet,

L(X⊔Y)=L(X)⊔L(Y).L(X\sqcup Y)=L(X)\sqcup L(Y).

A connected component with at least one edge produces a connected non-empty line graph: a walk between original endpoints induces a walk between the corresponding edges. An isolated vertex produces no vertex at all. For example,

L(C3⊔P3⊔K1)≅C3⊔P2.L(C_3\sqcup P_3\sqcup K_1)\cong C_3\sqcup P_2.

Thus an isomorphism X≅L(X)X\cong L(X) rules out isolated vertices by comparing the numbers of components.

A tree is a connected acyclic graph. Equivalent descriptions for a finite graph on n≥1n\geq1 vertices include:

  • Connected and acyclic.
  • Connected with exactly n−1n-1 edges.
  • Acyclic with exactly n−1n-1 edges.
  • A unique path between every pair of distinct vertices.

Proof of the tree edge count. For one vertex there are no edges. Inductively, a tree with at least two vertices has a leaf (an endpoint of a longest path is a leaf). Remove it and its incident edge, leaving a tree with one fewer vertex. By induction, the smaller tree has one fewer edge than vertices. Restoring the leaf and edge preserves the difference. Hence

Theorem
∣E(T)∣=∣V(T)∣−1.\boxed{|E(T)|=|V(T)|-1.}

A forest with nn vertices and cc components consequently has n−cn-c edges.

A tree on nn vertices has a line graph on n−1n-1 vertices, and cannot itself be isomorphic to its line graph. But its line graph need not be a tree: L(K1,3)≅C3L(K_{1,3})\cong C_3.

Theorem: for a connected graph with at least one edge, its line graph is a tree if and only if the graph is a path.

If the original graph has a vertex of degree at least three, its line graph contains a triangle. If the original graph contains a cycle, its line graph also contains a cycle. Thus an acyclic line graph forces the original connected graph to be acyclic and of maximum degree at most two, hence a path. Conversely, the line graph of a path is a shorter path.

A unicyclic graph is connected and has exactly one cycle. A connected graph with nn vertices and nn edges is unicyclic: start with a spanning tree on n−1n-1 edges and add the one remaining edge. The unique tree path between the extra edge’s endpoints forms the unique cycle together with that edge.

Edge count of connected graph Structure
m=n−1m=n-1 Tree
m=nm=n Unicyclic
m≥n+1m\geq n+1 Multiple distinct cycles

The converse for the unicyclic case follows by deleting one edge from its unique cycle to obtain a tree.

The handshaking lemma gives

∑vdeg⁡(v)=2m,d‾=2mn.\sum_v\deg(v)=2m,\qquad\overline d=\frac{2m}{n}.

When n=mn=m, the average degree is two. But average degree two does not mean that every degree equals two: a triangle with an attached leaf has degree sequence 2,2,3,12,2,3,1, while C4C_4 has degree sequence 2,2,2,22,2,2,2.

A finite connected 2-regular simple graph is a cycle. Follow edges without backtracking until a cycle is formed. Every vertex of that cycle already has two incident edges, so no additional vertex can attach to it. Connectedness implies the cycle is the entire graph. In general, a finite 2-regular graph is a disjoint union of cycles (including the empty union if permitted).

10. Algebraic proof technique: sums of squares

Section titled “10. Algebraic proof technique: sums of squares”

If a sum of squares of real numbers is zero, every squared term is zero. For example, (a−2)2+(b−2)2+(c−2)2=0(a-2)^2+(b-2)^2+(c-2)^2=0 implies a=b=c=2a=b=c=2.

Write dv=deg⁡X(v)d_v=\deg_X(v). Then

∑v(dv−2)2=∑vdv2−4∑vdv+4n,∑vdv=2m,∣E(L(X))∣=12∑vdv(dv−1),∑vdv2=2∣E(L(X))∣+∑vdv.\begin{aligned}\sum_v(d_v-2)^2&=\sum_v d_v^2-4\sum_v d_v+4n,\\\sum_v d_v&=2m,\\|E(L(X))|&=\frac12\sum_v d_v(d_v-1),\\\sum_v d_v^2&=2|E(L(X))|+\sum_v d_v.\end{aligned}

Under X≅L(X)X\cong L(X), substitute the equal order and size conditions into these identities. Try to show the sum of squares vanishes. This is the algebraic route to the classification.

Prove L(Cₙ) is isomorphic to Cₙ.

Label vertices cyclically by viv_i and edges by ei={vi,vi+1}e_i=\{v_i,v_{i+1}\} with indices modulo nn. The bijection vi↦eiv_i\mapsto e_i preserves adjacency because eie_i meets exactly ei−1e_{i-1} and ei+1e_{i+1}.

Show that a degree-four vertex creates a four-clique in the line graph.

Its four incident edges become four vertices, all pairwise adjacent because they share the original vertex.

Suppose a non-empty regular graph is isomorphic to its line graph. Find its valency.

The valencies must coincide, so k=2k−2k=2k-2, giving k=2k=2. A non-empty graph of valency zero cannot be isomorphic to its empty line graph.

Prove the disjoint union of a triangle and a five-cycle is isomorphic to its line graph.

Apply L(X⊔Y)=L(X)⊔L(Y)L(X\sqcup Y)=L(X)\sqcup L(Y) and the cycle isomorphism separately to both components.

Can a non-empty forest be isomorphic to its line graph?

No. A forest with nn vertices and c≥1c\geq1 components has n−c<nn-c<n edges, so its line graph has smaller order.

Knowledge check

0/8 answered

1. A graph has 8 vertices and 12 edges. Order of L(X)L(X)?
2. What is L(K1,5)L(K_{1,5})?
3. If X is 4-regular, what is its line graph valency?
4. Edge endpoints have degrees 3 and 5. Its line graph degree?
5. A tree has 15 vertices. Line graph order?
6. A connected graph has nn vertices and nn edges. What is it?
7. What is a finite simple 2-regular graph?
8. A sum of squared real numbers vanishes. What follows?

Structural route: exclude isolated vertices. Suppose there is a tree component and choose one of largest order. Isomorphism forces a component whose line graph is that tree. By the earlier theorem this component is a path; compare its order with that of the supposed largest tree. Then use edge counting and the degree identities to finish the classification.

Algebraic route: use equality of order and size together with the sum-of-squares identity to establish regularity directly. This also rules out tree components. Prove the converse using the cycle isomorphism and disjoint unions. Address the empty graph if your convention allows it. The complete proof is left for you to write.

Your lesson progress

0/5 available lessons marked complete · 0%