MathLabs

Combinatorics and discrete mathematics

Planar graphs

Graphs that can be drawn in the plane without any edges crossing.

IntuitionVisual intuition: drawing without crossings

Think of a subway map, a printed circuit board, or the pipes of a building: in each case we would like to draw connections between points without any two connections crossing each other, since a crossing would mean two subway lines colliding, two wires short-circuiting, or two pipes physically overlapping. A graph GG is called planar if it can be drawn on a flat plane with its vertices as points and its edges as curves, so that no two edges intersect except at a shared endpoint. Such a drawing is called a plane graph, and it automatically divides the plane into regions called faces.

Graph network widget showing a crossing-free planar drawing with labeled faces.
A planar embedding of a graph drawn with no crossing edges, dividing the plane into faces.

SchoolFaces and Euler's formula

Definition: Plane graph, faces, Euler's formula

A plane graph drawn in the plane has vertices VV, edges EE, and faces FF (regions cut out by the drawing, including the single unbounded outer face). For any connected plane graph these three numbers are tied together by Euler's formula V−E+F=2V - E + F = 2, regardless of how large or complicated the graph is.

V−E+F=2V - E + F = 2

Here VV counts vertices, EE counts edges, and FF counts faces of any fixed planar drawing of a connected graph. A direct consequence, since every face of a simple graph (with at least 3 vertices) is bounded by at least 3 edges and every edge borders exactly 2 faces, is the edge-count bound E≤3V−6E \le 3V - 6: planar graphs cannot have too many edges relative to their vertices. For bipartite planar graphs the bound is even tighter, E≤2V−4E \le 2V - 4, since every face must be bounded by at least 4 edges (bipartite graphs have no odd cycles, so no triangular faces).

E≤3V−6E \le 3V - 6
Vertices, edges, faces, and planarity of some standard graphs
GraphVV, EEPlanar? (edge bound)
Tetrahedron graph K4K_4V=4V=4, E=6E=6Yes: 6≤3(4)−6=66 \le 3(4)-6=6
Cube graph Q3Q_3V=8V=8, E=12E=12Yes: 12≤3(8)−6=1812 \le 3(8)-6=18
Complete graph K5K_5V=5V=5, E=10E=10No: 10>3(5)−6=910 > 3(5)-6=9
Complete bipartite K3,3K_{3,3}V=6V=6, E=9E=9No: 9>2(6)−4=89 > 2(6)-4=8

UndergraduateKey theorems

For any connected plane graph with VV vertices, EE edges and FF faces (counting the unbounded outer face), V−E+F=2V - E + F = 2.

Why is it true?

This single identity is the source of almost every other fact about planar graphs, including the edge-count bound and the non-planarity of K5K_5 and K3,3K_{3,3}, and it is proved by a short, fully elementary induction.

Proof

Base case. If EE =0= 0 and the graph is connected, it must consist of a single vertex (V=1V=1), and there is exactly one face, the entire unbounded plane (F=1F=1). Then 1−0+1=21 - 0 + 1 = 2 holds.

Inductive step, case 1: an edge lying on a cycle. Suppose the formula holds for every connected plane graph with fewer than EE edges, and let the graph have EE ≥1\ge 1 edges. If some edge ee lies on a cycle, then removing ee keeps the graph connected (the rest of the cycle still connects its two endpoints). Removing ee merges the two faces on its two sides into a single face, so the smaller graph has VV vertices, E−1E - 1 edges and F−1F - 1 faces. By the inductive hypothesis, V−(E−1)+(F−1)=2V - (E-1) + (F-1) = 2, which simplifies to V−E+F=2V - E + F = 2.

Inductive step, case 2: no edge lies on a cycle. Then every edge is a bridge, meaning the graph has no cycles at all, i.e. it is a tree. A tree drawn in the plane has exactly one face (F=1F = 1, the single unbounded region, since there is no cycle to enclose any bounded region), and a standard fact about trees is that a tree on VV vertices has exactly E=V−1E = V - 1 edges. Substituting, V−E+F=V−(V−1)+1=2V - E + F = V - (V - 1) + 1 = 2.

Conclusion. Every case reduces to the formula holding, or reduces (via removing one edge) to a smaller graph where it holds by induction, so V−E+F=2V - E + F = 2 for every connected plane graph.

A graph is planar if and only if it contains no subdivision of K5K_5 or K3,3K_{3,3} (a copy of K5K_5 or K3,3K_{3,3} where edges may be replaced by internally disjoint paths).

Why is it true?

This gives a complete, checkable characterization of planarity purely in terms of two small forbidden patterns, turning an existential question (can we find some crossing-free drawing?) into a search for one of two specific obstructions.

Proof

Why K5K_5 and K3,3K_{3,3} themselves are not planar. K5K_5 has V=5V=5 vertices and E=10E=10 edges, but the edge bound E≤3V−6E \le 3V - 6 requires 10≤3(5)−6=910 \le 3(5)-6=9, a contradiction, so K5K_5 is not planar. K3,3K_{3,3} is bipartite with V=6V=6 vertices and E=9E=9 edges; a planar bipartite graph must satisfy the tighter bound E≤2V−4E \le 2V - 4, requiring 9≤2(6)−4=89 \le 2(6)-4=8, again a contradiction, so K3,3K_{3,3} is not planar either.

Subdivisions preserve non-planarity (the easy direction). If a graph HH is a subdivision of a graph GG (each edge of GG replaced by an internally disjoint path), and GG is not planar, then HH cannot be planar either: any crossing-free drawing of HH could be turned into one of GG simply by erasing the internal degree-2 vertices on each path and straightening it back into a single edge, which does not introduce any new crossings. So any graph containing a subdivision of K5K_5 or K3,3K_{3,3} as a subgraph automatically fails to be planar, which proves the only-if direction of the theorem.

The converse (hard direction), sketch. That every non-planar graph must contain such a subdivision is the deep part, proved independently by Kuratowski in 1930 and, in an equivalent minor-based form, by Wagner in 1937. The argument proceeds by taking a hypothetical minimal non-planar graph containing no subdivision of K5K_5 or K3,3K_{3,3} and deriving a contradiction: using Menger's theorem on connectivity, one first reduces to the case where the graph is 3-connected (graphs with a small vertex cut can be split along that cut into smaller planar-or-smaller pieces and reassembled), and then shows directly that every 3-connected non-planar graph of minimum size already contains one of the two forbidden subdivisions. This structural reduction via connectivity is where the real difficulty of the theorem lies.

Conclusion. Combining both directions, a graph is planar exactly when it avoids both forbidden subdivisions, giving the full characterization.

UndergraduateReal-World Applications and Worked Examples

Planarity matters wherever crossing connections cause real problems. Circuit board designers check whether a schematic can be routed on a single copper layer without crossing traces, which is exactly a planarity test; when it fails, engineers must add extra layers or vias. Utility network planners (gas, water, electricity) use planarity and Euler's formula to reason about how many junctions, pipes and service regions a layout can have. Geographic information systems use planar subdivisions to model countries, states or land parcels, where faces of the planar graph correspond to the regions themselves.

Example: Checking that the cube graph is planar

The cube graph Q3Q_3 (vertices and edges of a cube) has V=8V = 8 vertices and E=12E = 12 edges. Use the edge-count bound to check whether Q3Q_3 could possibly be planar, and describe a crossing-free drawing.

Solution

Check the necessary bound. If Q3Q_3 were planar, it would need to satisfy E≤3V−6E \le 3V - 6, i.e. E≤3(8)−6=18E \le 3(8) - 6 = 18. Since E=12≤18E = 12 \le 18, the bound does not rule out planarity (though satisfying it is only necessary, not sufficient, so this alone does not yet prove planarity).

Construct an explicit crossing-free drawing. Draw the cube as the classic "square inside a square" picture: an outer square with 4 vertices, an inner smaller square with the other 4 vertices, and 4 edges connecting each outer vertex straight to the corresponding inner vertex. The outer square's 4 edges, the inner square's 4 edges, and the 4 connecting edges give all 1212 edges, and none of them cross in this picture.

Count the faces and confirm Euler's formula. This drawing has 6 faces: the 4 trapezoidal regions between the two squares, the inner square's interior, and the outer unbounded region, so F=6F = 6. Checking Euler's formula: 8−12+6=28 - 12 + 6 = 2, confirming consistency.

Conclusion. Since we exhibited an explicit crossing-free drawing, Q3Q_3 is indeed planar, consistent with (though not proved by) the necessary edge bound.

Example: Why five fully interconnected chips cannot be routed on one layer

A circuit board designer wants to connect 55 microchips directly to each other (every pair of chips needs a dedicated copper trace), all on a single layer of copper with no crossing traces. Using the planar edge bound E≤3V−6E \le 3V - 6, prove that this is impossible.

Solution

Model as a graph. Each of the 55 chips is a vertex, and each required trace between a pair of chips is an edge; since every pair of the 55 chips must be connected, this is the complete graph K5K_5, which has V=5V = 5 vertices and E=(52)=10E = \binom{5}{2} = 10 edges.

Apply the necessary condition for planarity. Routing all traces on a single layer without crossings is the same as drawing K5K_5 in the plane without crossings, i.e. K5K_5 being planar. Every simple planar graph with V≥3V \ge 3 vertices must satisfy E≤3V−6E \le 3V - 6.

Substitute V=5V = 5. The right-hand side is 3V−6=3(5)−6=93V - 6 = 3(5) - 6 = 9, so any planar graph on 55 vertices can have at most 99 edges. However, K5K_5 has E=10E = 10 edges, and 10>910 > 9, violating the inequality.

Conclusion. Because K5K_5 has 1010 edges while a planar graph on 55 vertices can have at most 99, no crossing-free single-layer routing exists; at least one trace must cross another (or be moved to a second layer via a through-hole).

A connected plane graph has V=10V = 10 vertices and E=15E = 15 edges. By Euler's formula V−E+F=2V - E + F = 2, how many faces FF (including the outer face) does it have?

By the planar edge-count bound E≤3V−6E \le 3V - 6, what is the maximum number of edges a simple planar graph on V=7V = 7 vertices can have?

By Kuratowski's theorem, which pair of graphs are the two fundamental forbidden patterns whose subdivisions prevent a graph from being planar?

Three houses must each be connected by underground pipes to three utility stations (water, gas, electricity), making 99 pipes in total between 66 locations. Why can these pipes never be laid in a single flat layer without at least two pipes crossing?

References

  1. Kazimierz Kuratowski (1930). Sur le problème des courbes gauches en Analysis Situs
  2. Reinhard Diestel (2017). Graph Theory