Line Graph Calculator

Edges become vertices

CalculatorsFreeNo Signup
4.4(513 reviews)
All Tools

Loading tool...

About Line Graph Calculator

A line graph calculator computing L(G): vertices of L(G) = edges of G, two vertices adjacent iff corresponding edges share an endpoint. |V(L)| = |E(G)|, |E(L)| = Σ C(deg(v),2). Whitney theorem: L(G)≅L(H) implies G≅H (with exceptions). Client-side.

Line Graph Calculator Features

  • L(G) construction
  • Edge count
  • Whitney theorem
  • Degree formula
  • Clique cover
Line graph L(G): vertices = edges of G, adjacent iff sharing an endpoint. |V(L)|=|E(G)|. deg_L(e) = deg(u)+deg(v)-2 for edge e=uv. L(K_n) = Kneser complement. L(K_{1,n}) = K_n. Whitney (1932): L characterizes G uniquely (with few exceptions).

How to Use

Select graph:

  • L(G): Line graph
  • Vertices: = edges of G
  • Edges: Shared endpoints

Whitney's Theorem

If L(G)≅L(H) and G,H have >4 edges, then G≅H. Exception: K_3 and K_{1,3} have the same line graph K_3. This uniqueness theorem is fundamental to graph reconstruction theory.

Properties

L(G) is always claw-free (no induced K_{1,3}). χ'(G) = χ(L(G)): edge coloring of G = vertex coloring of L(G). The line graph operation preserves many graph properties but changes the graph structure fundamentally.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute L(G).
  3. 3Count vertices/edges.
  4. 4Check properties.
  5. 5Compare to G.

Line Graph Calculator — Frequently Asked Questions

How does edge coloring relate?+

χ'(G) (chromatic index) = χ(L(G)) (chromatic number of line graph). This transforms edge coloring into vertex coloring. Vizing's theorem: χ'(G) = Δ or Δ+1, so χ(L(G)) = Δ or Δ+1.

What's special about L(K_n)?+

L(K_n) = triangular graph T(n): vertices are pairs from {1,...,n}, adjacent iff sharing an element. T(n) has C(n,2) vertices and is strongly regular with parameters (C(n,2), 2(n-2), n-2, 4). Famous in algebraic graph theory.

When is a graph a line graph?+

Beineke (1968): G is a line graph iff it has no induced subgraph from a list of 9 forbidden graphs. The most well-known forbidden subgraph is the claw K_{1,3}. Recognition is polynomial-time.

Share this tool: