Discrete MathematicsPlanarity, Coloring and Matching1 of 4
Planarity, Coloring and Matching · 1
Planar Graphs and Euler's Formula
When we lay out wires on a circuit board or pipes between buildings, we need to know whether a network can be drawn on a flat surface without any lines crossing.
1
What Is a Planar Graph?
A planar graph is a graph that can be drawn in the plane so that no edges cross. Even if a drawing currently has crossings, the graph is still planar as long as we can slide the vertices and reroute the edges so none of them cross.
What Is a Planar Graph?
In K4, rerouting one diagonal around the outside clears every crossing, while in K5 and K3,3, rerouting edges clears some crossings, but we always get stuck with at least one edge crossing another.
Moving vertices changes where edges cross without changing which vertices are connected, so the first graph unfolds to zero crossings while the other two always leave edges crossing.
2
Building Planar Graphs and Euler's Formula
Trying and failing to untangle a graph by hand doesn't prove it can't be done, because there are infinitely many ways to route the edges. To prove a graph cannot be untangled, we need a number that stays the same across every connected planar drawing.
When a graph is drawn without crossings, its edges divide the plane into regions called faces, which include both the enclosed regions on the inside and the single open region all around the outside.
Watch what happens to the counts of vertices V, edges E, and faces F as we start with a single vertex and build a connected planar graph one non-crossing edge at a time.
Building Planar Graphs and Euler's Formula
Each new non-crossing edge either reaches a new vertex in open space or closes a cycle to split an existing face in two, keeping V+F equal to E+2 at every step.
Every new non-crossing edge adds either one vertex or one face, keeping the balance between vertices, faces, and edges at 2.
Starting from 1 vertex and 1 outside face (V=1,F=1,E=0), every added edge increases E by 1 and increases either V or F by 1. Rearranging V+F=E+2 gives Euler's formula for any connected planar drawing:
When a connected graph has no cycles at all (a tree), it encloses no inside regions, so F=1 (only the outside face) and Euler's formula becomes V−E+1=2, or E=V−1.
3
Counting Faces Without a Drawing
Because V−E+F=2 holds for every crossing-free drawing of a connected planar graph, we can find the exact number of faces F without ever seeing the drawing.
Example: A connected planar graph has V=10 vertices, and every vertex has degree 3. How many faces does a planar drawing of this graph have?
To use Euler's formula, we first need the number of edges E. Recall the Handshake Lemma: since every edge has 2 ends, adding up the vertex degrees (the number of edge-ends meeting at each vertex) counts every edge twice, giving 2E.
Counting Faces Without a Drawing
Text solution
Count the edges with the Handshake LemmaMultiply the 10 vertices by 3 edge-ends each and divide by 2 ends per edge to find E.
2E2EE=10×3=30=15
Substitute V and E into Euler's formulaPlug V=10 and E=15 into V−E+F=2 and solve for F.
10−15+F−5+FF=2=2=7
So any crossing-free drawing of this graph divides the plane into 7 faces: 6 enclosed regions on the inside plus 1 region on the outside.
4
Proving K5 Is Non-Planar
Now we want to prove that K5, the complete graph with V=5 vertices and E=10 edges, cannot be drawn in the plane without crossings. If a planar drawing of a simple graph existed, Euler's formula would tell us how many faces it must have, and we can check whether the edges have enough sides to surround that many faces.
Proving K₅ Is Non-Planar
Text solution
Find the required number of facesAssume K5(V=5,E=10) has a planar drawing and solve V−E+F=2 for F.
5−10+F−5+FF=2=2=7
Compare edge-sides needed to edge-sides availableIn a simple graph, every face needs at least 3 boundary edges (a triangle), while each of the 10 edges has only 2 sides to give.
Since 7 faces require at least 21 edge-sides and 10 edges only provide 20, no planar drawing of K5 can exist.
Writing this same edge-side count for any connected simple planar graph with V≥3 gives 3F≤2E. Substituting F=E−V+2 from Euler's formula turns the edge-side check into a direct bound on E:
3(E−V+2)3E−3V+6E≤2E≤2E≤3V−6
For K5, the maximum possible number of edges is 3(5)−6=9, and since 10>9,K5 is non-planar. Checking E≤3V−6 is the quickest test to run first, while comparing edge-sides directly works whenever a problem gives you a longer minimum cycle length.
5
Bipartite Graphs and the Three Utilities Puzzle
Now let's test the Three Utilities Puzzle, K3,3, which connects 3 houses to 3 utilities (V=6 and E=9). In our general bound E≤3V−6, we get 9≤3(6)−6=12, so K3,3 passes, even though it still cannot be untangled.
To see why E≤3V−6 missed the contradiction, we have to look at the shortest cycle a bipartite graph can actually make.
Bipartite Graphs and the Three Utilities Puzzle
Text solution
Find the required number of facesAssume K3,3(V=6,E=9) has a planar drawing and solve V−E+F=2 for F.
6−9+F−3+FF=2=2=5
Count edge-sides using 4-sided facesBecause K3,3 is bipartite, edges only go between houses and utilities, so there are no odd cycles and no triangles; every face needs at least 4 boundary edges.
Since 5 triangle-free faces require at least 20 edge-sides and 9 edges only provide 18,K3,3 is non-planar and the Three Utilities Puzzle is impossible on a flat plane.
Whenever a connected simple planar graph (V≥3) has no triangles, every face needs at least 4 sides (4F≤2E), which lowers the maximum number of edges:
4(E−V+2)4E−4V+82EE≤2E≤2E≤4V−8≤2V−4
For K3,3, the triangle-free limit is 2(6)−4=8, which immediately shows 9>8.
6
Subdivisions and Kuratowski's Theorem
What if a graph passes E≤3V−6 (and either has triangles or passes E≤2V−4 too)? Passing an edge bound never proves a graph is planar, because the bounds only go one way: every planar graph satisfies them, but a non-planar graph can pass them too.
Placing a new vertex in the middle of an existing edge, called subdividing the edge, adds 1 to V and 1 to E, which increases 3V−6 by 3 without untangling anything. Kuratowski's Theorem tells us that every non-planar graph is non-planar because it contains a hidden K5 or K3,3:
A graph is non-planar⟺it contains a edges split bydegree-2 verticessubdivision of K5 or K3,3
Example: A 7-vertex graph has vertices 1 through 6 in a ring with opposite diagonals 1–4,2–5, and 3–6, a vertex 7 subdividing the 1–4 diagonal into 1–7 and 7–4, and an extra edge 7–2. Prove that this graph is non-planar.
Subdivisions and Kuratowski's Theorem
Text solution
Check the edge bounds firstWith V=7 and E=11, test E≤3V−6, and notice that triangle 1–2–7 prevents us from using E≤2V−4.
3V−6=3(7)−6=15(11≤15 passes)
Delete extra edges and smooth degree-2 verticesErase the extra edge 7–2 so vertex 7 has degree 2 on the path 1–7–4, then smooth 1–7–4 into a single edge 1–4.
Delete 7–2⟹deg(7)=2⟹smooth 1–7–4 into 1–4
Identify the bipartite sets of K3,3Alternate colors around the 6-vertex ring into red houses {1,3,5} and blue utilities {2,4,6}, where each red vertex connects to its two blue neighbors on the ring and the third blue vertex straight across.
Red {1,3,5}↔Blue {2,4,6}⟹K3,3
Because the original graph contains a subdivision of K3,3, Kuratowski's Theorem proves it is non-planar.
Key concepts
Counting faces, vertices, or edges in a planar drawing
Every connected planar drawing satisfies Euler's formula, V−E+F=2, where F always includes the 1 outside region around the graph (for untangled K4 with V=4,E=6,4−6+F=2 gives F=4:3 inner triangles plus 1 outside face). When a problem gives vertex degrees instead of E, use the Handshake Lemma (2E=sum of degrees) first (for 10 vertices of degree 3,2E=30⟹E=15, and 10−15+F=2⟹F=7 faces).
Ruling out planarity with edge-side bounds
In a connected simple planar graph (V≥3), E edges provide 2E edge-sides to surround the F=E−V+2 faces.
Check the general boundE≤3V−6 first, which comes from 3F≤2E (at least 3 edges per face). If E>3V−6, the graph is immediately non-planar (for K5,10>3(5)−6=9).
If E≤3V−6 passes and the graph has no triangles (such as any bipartite graph), every face needs at least 4 edges (4F≤2E), so use the smaller bound E≤2V−4 (for K3,3,9≤12 passes the general bound, but 9>2(6)−4=8 proves it is non-planar). Never use E≤2V−4 if the graph has even one triangle. If the shortest cycle has length k≥5, skip both shortcut bounds and compare kF edge-sides needed against 2E available directly.
When the edge bounds pass
Do not conclude the graph is planar. The bounds are one-way conditionals, and subdividing an edge adds 1 to E while adding 3 to 3V−6 (subdividing one edge of K5 gives V=6,E=11, which passes 11≤12 while staying non-planar). If you can untangle the drawing (like pulling one diagonal of K4 outside), you are done and do not need Kuratowski's Theorem. Otherwise, prove it is non-planar with Kuratowski's Theorem by deleting extra edges and smoothing degree-2 vertices to reveal K5 or K3,3.
7
Practice
1
A connected planar graph with 8 vertices is drawn with no edges crossing, dividing the inside of the drawing into 5 enclosed regions. How many edges does the graph have?
Forgetting the outside face and plugging in F=5 gives the wrong answer 11.
In Euler's formula V−E+F=2, what region must be included in F besides the 5 enclosed inside regions?
Counting the 5 enclosed regions plus 1 outside region gives F=6 faces (forgetting the outside face and plugging in F=5 gives the wrong answer 11). By Euler's formula, V−E+F=2, so 8−E+6=2, which gives E=12.
2
A connected planar graph has 6 vertices of degree 3 and 4 vertices of degree 4. Into how many faces does any planar drawing of this graph divide the plane?
Using the degree sum 34 directly as E without dividing by 2 gives the wrong answer 26.
Add the degrees of all the vertices to count the total edge-ends first: how does that sum relate to E?
The graph has V=6+4=10 vertices. By the Handshake Lemma, the sum of the degrees is 6(3)+4(4)=34=2E, so E=17 edges (using the degree sum 34 directly as E without dividing by 2 gives the wrong answer 26). By Euler's formula, 10−17+F=2, so F=9.
3
Consider the complete bipartite graph K3,4, which has 3 vertices in one set connected to all 4 vertices in the other set. Does K3,4 pass or fail the general bound E≤3V−6? Prove whether K3,4 is planar or non-planar.
After testing E≤3V−6, what does being bipartite tell you about the shortest cycle K3,4 can contain?
K3,4 has V=3+4=7 vertices and E=3×4=12 edges. Since 3V−6=3(7)−6=15 and 12≤15, it passes the general bound (stopping here and concluding K3,4 is planar is a mistake, because passing an edge bound never proves planarity). Because K3,4 is bipartite, it has no odd cycles and therefore no triangles, so every face in a planar drawing needs at least 4 edges and must satisfy E≤2V−4. Here 2V−4=2(7)−4=10, and since 12>10,K3,4 is non-planar.
4
Start with K3,3(V=6,E=9) and subdivide one of its edges by placing 1 new vertex in the middle of that edge. Check whether this new graph has any triangles, whether it satisfies both E≤3V−6 and E≤2V−4, and whether it is planar. Why doesn't this contradict the edge-bound formulas?
When 1 edge is split into 2 edges in a row by a new vertex, how much do V and E each increase, and what happens to the length of any cycle using that edge?
Placing a vertex in the middle of one edge increases V to 7 and replaces 1 edge with 2 edges for a net gain of 1, giving E=10 (adding 2 to 9 without subtracting the original split edge gives E=11). This only lengthens cycles using that edge without creating any triangles. The new graph satisfies both 10≤3(7)−6=15 and 10≤2(7)−4=10, yet it is still non-planar because it is a subdivision of K3,3 (claiming it is planar because 10≤10 passes reverses the direction of the conditional). This is not a contradiction because the edge bounds are one-way conditionals: every planar graph satisfies them, but passing the bounds does not guarantee a graph is planar.
5
A 7-vertex graph has vertices labeled 1 through 7. Vertices 1,2,3,4, and 5 have every possible edge between them except 1–2 and 3–4(8 edges). Vertex 6 is connected to 1,2, and 3(3 edges), and vertex 7 is connected to 3,4, and 5(3 edges). Check that this graph passes E≤3V−6, and then use Kuratowski's Theorem to prove it is non-planar.
Which single edge can you delete from vertex 6 and from vertex 7 so that each becomes a degree-2 vertex standing in for one of the two missing edges among {1,2,3,4,5}?
With V=7 and E=8+3+3=14, we have 3V−6=3(7)−6=15, and 14≤15 passes (do not use E≤2V−4=10 here, because the graph contains triangles such as 1–3–5). Now delete the extra edges 6–3 and 7–5 (deleting vertices 6 and 7 completely would remove the paths replacing 1–2 and 3–4, leaving a planar 8-edge graph). Vertex 6 then has degree 2 on the path 1–6–2 (replacing the missing 1–2 edge), and vertex 7 has degree 2 on the path 3–7–4 (replacing the missing 3–4 edge). Smoothing vertices 6 and 7 leaves all 10 edges among vertices 1,2,3,4, and 5, revealing a subdivision of K5, so the graph is non-planar by Kuratowski's Theorem.
6
A connected simple graph has V=10 vertices, E=15 edges, and no cycles of length 3 or 4 (its shortest cycle has length at least 5). Use Euler's formula and an edge-side count to prove that this graph is non-planar.
Find F from V−E+F=2 first; if every face boundary must have at least 5 edges, how many edge-sides are required across all F faces compared to the 2E edge-sides available?
If the graph had a planar drawing, Euler's formula V−E+F=2 would require 10−15+F=2, or F=7 faces. Because there are no cycles of length 3 or 4, every face would need at least 5 boundary edges (checking only E≤2V−4, which gives 15≤16, misses the contradiction because that formula still allows 4-sided faces). Surrounding 7 faces with at least 5 edges each requires at least 7×5=35 edge-sides, while 15 edges have only 15×2=30 edge-sides available. Since 30<35, the graph is non-planar.