maths.free › Combinatorics & Graph Theory › 3. Graph Theory › Planar Graphs
Planar Graphs
Investigation When a connected graph can be drawn without any edges crossing, it is called planar. When a planar graph is drawn in this way, it divides the plane into regions called faces. Draw, if possible, tw
Section Preview
Investigation
When a connected graph can be drawn without any edges crossing, it is called planar. When a planar graph is drawn in this way, it divides the plane into regions called faces.
Draw, if possible, two different planar graphs with the same number of vertices, edges, and faces.
Draw, if possible, two different planar graphs with the same number of vertices and edges, but a different number of faces.
When is it possible to draw a graph so that none of the edges cross? If this is possible, we say the graph is planar (since you can draw it on the plane).
Notice that the definition of planar includes the phrase it is possible to. This means that even if a graph does not look like it is planar, it still might be. Perhaps you can redraw it in a way in which no edges cross. For example, this is a planar graph:
That is because we can redraw it like this:
The graphs are the same, so if one is planar, the other must be, too. However, the original drawing of the graph was not a planar representation of the graph.
When a planar graph is drawn without edges crossing, the edges and vertices of the graph divide the plane into regions. We will call each region a face. The graph above has 3 faces (yes, we do include the outside region as a face). The number of faces does not change no matter how you draw the graph (as long as you do so without the edges crossing), so it makes sense to ascribe the number of faces as a property of the planar graph.
WARNING: you can only count faces when the graph is drawn in a planar way. For example, consider these two representations of the same graph:
If you try to count faces using the graph on the left, you might say there are 5 faces (including the outside). But drawing the graph with a planar representation shows that in fact there are only 4 faces.
Euler's Formula for Planar Graphs
There is a connection between the number of vertices (\(v\)), the number of edges (\(e\)), and the number of faces (\(f\)) in any connected planar graph. This relationship is called Euler's formula.
For any connected planar graph with \(v\) vertices, \(e\) edges, and \(f\) faces, we have \[v-e + f = 2\].
Why is Euler's formula true? One way to convince ourselves of its validity is to draw a planar graph step by step. Start with the graph \(P_2\):
Any connected graph (besides just a single isolated vertex) must contain this subgraph. Now we build up to our graph by adding edges and vertices. Each step will consist of either adding a new vertex connected by a new edge to part of your graph (so creating a new spike) or by connecting two vertices already in the graph with a new edge (completing a circuit).
What do these moves do? When adding the spike, the number of edges increases by 1, the number of vertices increases by 1, and the number of faces remains the same. But this means that \(v - e + f\) does not change. Completing a circuit adds one edge, adds one face, and keeps the number of vertices the same. So again, \(v - e + f\) does not change.
Since we can build any graph using a combination of these two moves, and doing so never changes the quantity \(v - e + f\), that quantity will be the same for all graphs. But notice that our starting graph \(P_2\) has \(v = 2\), \(e = 1\), and \(f = 1\), so \(v - e + f = 2\).
The argument we have outlined above is not quite correct, since we made the unjustified assumption that all graphs can be built up from \(P_2\) using only the two moves we described. To avoid this issue, we can use a minimal criminal argument. You are asked to do this in the exercises, but the idea is essentially the same as we have here, except that we start with a minimal connected planar graph that does not satisfy the formula, then remove either an edge or a vertex (and its edge) to get a smaller connected planar graph that does satisfy the formula. But just like the adding moves we have described above, removing an edge or a vertex does not change the quantity \(v - e + f\).
Non-planar Graphs
Investigation
For the complete graphs \(K_n\), we would like to be able to say something about the number of vertices, edges, and (if the graph is planar) faces. Let's first consider \(K_3\):
How many vertices does \(K_3\) have? How many edges?
If \(K_3\) is planar, how many faces should it have?
Repeat parts (1) and (2) for \(K_4\), \(K_5\), and \(K_{23}\).
What about complete bipartite graphs? How many vertices, edges, and faces (if it were planar) does \(K_{7,4}\) have? For which values of \(m\) and \(n\) are \(K_n\) and \(K_{m,n}\) planar?
Not all graphs are planar. If there are too many edges and too few vertices, then some of the edges will need to intersect. The smallest graph where this happens is \(K_5\).
If you try to redraw this without edges crossing, you quickly get into trouble. There seems to be one edge too many. In fact, we can prove that no matter how you draw it, \(K_5\) will always have edges crossing.
Proof
The proof is by contradiction. So assume that \(K_5\) is planar. Then the graph must satisfy Euler's formula for planar graphs. \(K_5\) has 5 vertices and 10 edges, so we get \[5 - 10 + f = 2\], which says that if the graph is drawn without any edges crossing, there would be \(f = 7\) faces.
Now consider how many edges surround each face. Each face must be surrounded by at least 3 edges. Let \(B\) be the total number of boundaries around all the faces in the graph. Thus we have that \(3f \le B\). But also \(B = 2e\), since each edge is used as a boundary exactly twice. Putting this together we get \[3f \le 2e\].
But this is impossible, since we have already determined that \(f = 7\) and \(e = 10\), and \(21 \not\le 20\). This is a contradiction, so in fact \(K_5\) is not planar.
The other simplest graph which is not planar is \(K_{3,3}\)
Proving that \(K_{3,3}\) is not planar answers the classic houses and utilities puzzle: it is not possible to connect each of three houses to each of three utilities without the lines crossing.
Condensed — the full section is in Levin, Discrete Mathematics: An Open Introduction.
Polyhedra
Investigation
A cube is an example of a convex polyhedron. It contains 6 identical squares for its faces, 8 vertices, and 12 edges. The cube is a regular polyhedron (also known as a Platonic solid) because each face is an identical regular polygon and each vertex joins an equal number of faces.
There are exactly four other regular polyhedra: the tetrahedron, octahedron, dodecahedron, and icosahedron, with 4, 8, 12, and 20 faces respectively. How many vertices and edges do each of these have?
Another area of mathematics where you might have heard the terms vertex, edge, and face is geometry. A polyhedron is a geometric solid made up of flat polygonal faces joined at edges and vertices. We are especially interested in convex polyhedra, which means that any line segment connecting two points on the interior of the polyhedron must be entirely contained inside the polyhedron. An alternative definition for convex is that the internal angle formed by any two faces must be less than \(180\deg\).
Notice that since \(8 - 12 + 6 = 2\), the vertices, edges, and faces of a cube satisfy Euler's formula for planar graphs. This is not a coincidence. We can represent a cube as a planar graph by projecting the vertices and edges onto the plane. One such projection looks like this:
In fact, every convex polyhedron can be projected onto the plane without edges crossing. Think of placing the polyhedron inside a sphere, with a light at the center of the sphere. The edges and vertices of the polyhedron cast a shadow onto the interior of the sphere. You can then cut a hole in the sphere in the middle of one of the projected faces and stretch the sphere to lie down flat on the plane. The face that was punctured becomes the outside face of the planar graph.
The point is, we can apply what we know about graphs (in particular planar graphs) to convex polyhedra. Since every convex polyhedron can be represented as a planar graph, we see that Euler's formula for planar graphs holds for all convex polyhedra as well. We also can apply the same sort of reasoning we use for graphs in other contexts to convex polyhedra. For example, we know that there is no convex polyhedron with 11 vertices all of degree 3, as this would make 33/2 edges.
Condensed — the full section is in Levin, Discrete Mathematics: An Open Introduction.
Planar Graphs
Let's return to the problem of providing lines for water, electricity, and natural gas to three homes which we discussed in the introduction to this chapter. How can we model this problem using a graph? The best way is to have a vertex for each utility and a vertex for each of the three homes. Then what we're asking is if we can draw the graph that has an edge from each utility to each home so that none of the edges cross. This graph is shown in . You should recognize it as the complete bipartite graph \(\bfK_{3,3}\) we introduced earlier in the chapter.
While this example of utility lines might seem a bit contrived, since there's really no good reason that the providers can't bury their lines at different depths, the question of whether a graph can be drawn in the plane such that edges intersect only at vertices is a long-studied question in mathematics that does have useful applications. One area where it arises is in the design of microchips and circuit boards. In those contexts, the material is so thin that the option of placing connections at different depths either does not exist or is severely restricted. There is much deep mathematics that underlies this area, and this section is intended to introduce a few of the key concepts.
By a drawing of a graph, we mean a way of associating its vertices with points in the Cartesian plane \(\reals^2\) and its edges with simple polygonal arcs whose endpoints are the points associated to the vertices that are the endpoints of the edge. You can think of a polygonal arc as just a finite sequence of line segments such that the endpoint of one line segment is the starting point of the next line segment, and a simple polygonal arc is one that does not cross itself. (Our choice of polygonal arcs rather than arbitrary curves actually doesn't cause an impediment, since by taking very, very, very short line segments we can approximate any curve.) A planar drawing of a graph is one in which the polygonal arcs corresponding to two edges intersect only at a point corresponding to a vertex to which they are both incident. A graph is planar if it has a planar drawing. A face of a planar drawing of a graph is a region bounded by edges and vertices and not containing any other vertices or edges.
shows a planar drawing of a graph with \(6\) vertices and \(9\) edges. Notice how one of the edges is drawn as a true polygonal arc rather than a straight line segment. This drawing determines \(5\) regions, since we also count the unbounded region that surrounds the drawing.
shows a planar drawing of the complete graph \(\bfK_4\). There are \(4\) vertices, \(6\) edges, and \(4\) faces in the drawing.
Condensed — the full section is in Keller & Trotter, Applied Combinatorics.
Practice (18)
Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.
-
Is the graph shown below planar? Explain your answer.
-
Suppose you draw a graph with 10 vertices and 14 edges in such a way that no edges cross. How many faces could your graph have? Explain your answer(s).
-
What questions do you have after reading this section? Write at least one question about the content of this section that you are curious about.
-
Is it possible for a planar graph to have 6 vertices, 10 edges, and 5 faces? Explain.
Fi àwọn àgbèwọlé hàn
No. A (connected) planar graph must satisfy Euler's formula: \(v - e + f = 2\). Here \(v - e + f = 6 - 10 + 5 = 1\).
-
The graph \(G\) has 6 vertices with degrees \(2, 2, 3, 4, 4, 5\). How many edges does \(G\) have? Could \(G\) be planar? If so, how many faces would it have? If not, explain.
Fi àwọn àgbèwọlé hàn
\(G\) has 10 edges, since \(10 = \frac{2+2+3+4+4+5}{2}\). It could be planar, and then it would have 6 faces, using Euler's formula: \(6-10+f = 2\) means \(f = 6\). To make sure that it is actually planar though, we would need to draw a graph with those vertex degrees without edges crossing. This can be done by trial and error (and is possible).
-
Is it possible for a connected graph with 7 vertices and 10 edges to be drawn so that no edges cross and create 4 faces? Explain.
Fi àwọn àgbèwọlé hàn
Hint:
What would Euler's formula tell you?
-
Is it possible for a graph with 10 vertices and edges to be a connected planar graph? Explain.
-
Is there a connected planar graph with an odd number of faces where every vertex has degree 6? Prove your answer.
Fi àwọn àgbèwọlé hàn
Hint:
You can use the handshake lemma to find the number of edges, in terms of \(v\), the number of vertices.
-
I'm thinking of a polyhedron containing 12 faces. Seven are triangles and four are quadrilaterals. The polyhedron has 11 vertices including those around the mystery face. How many sides does the last face have?
Fi àwọn àgbèwọlé hàn
Say the last polyhedron has \(n\) edges and also \(n\) vertices. The total number of edges the polyhedron has then is \((7 \cdot 3 + 4 \cdot 4 + n)/2 = (37 + n)/2\). In particular, we know the last face must have an odd number of edges. We also have that \(v = 11\). By Euler's formula, we have \(11 - (37+n)/2 + 12 = 2\), and solving for \(n\) we get \(n = 5\), so the last face is a pentagon.
-
Consider some classic polyhedrons.
An octahedron is a regular polyhedron made up of 8 equilateral triangles (it sort of looks like two pyramids with their bases glued together). Draw a planar graph representation of an octahedron. How many vertices, edges, and faces does an octahedron (and your graph) have?
The traditional design of a soccer ball is a (spherical projection of a) truncated icosahedron. This consists of 12 regular pentagons and 20 regular hexagons. No two pentagons are adjacent (so the edges of each pentagon are shared only by hexagons). How many vertices, edges, and faces does a truncated icosahedron have? Explain how you arrived at your answers. Bonus: draw the planar graph representation of the truncated icosahedron.
Your friend claims that he has constructed a convex polyhedron out of 2 triangles, 2 squares, 6 pentagons, and 5 octagons. Prove that your friend is lying. Hint: each vertex of a convex polyhedron must border at least three faces.
-
Prove Euler's formula using a minimal criminal argument, where minimum means smallest number of edges
Fi àwọn àgbèwọlé hàn
Proof
Suppose there is a graph \(G\) with fewest edges that does not satisfy Euler's formula.
Note that \(G\) cannot be a tree, since for any tree, \(v = e+1\) and \(f = 1\), so \(v - e + f = 2\). Therefore, \(G\) must contain a cycle. Pick any edge \(e_0\) that is part of a cycle in \(G\) and consider the graph \(G' = G-e_0\) that you get by removing just the edge \(e_0\) from \(G\).
Since \(G'\) has fewer edges than \(G\), it must satisfy Euler's formula. That is, \(v' - e' + f' = 2\), where \(v'\), \(e'\), and \(f'\) are the number of vertices, edges, and faces of \(G'\). Since \(G'\) is obtained by removing a single edge from a cycle in \(G\), we have \(v' = v\), \(e'=e-1\), and \(f' = f-1\). Therefore, \(v - (e-1) + (f-1) = 2\), so \(v - e + f = 2\) as well. This is a contradiction, so no such graph \(G\) can exist.
-
Prove Euler's formula using a minimal criminal argument, where minimum means smallest number of vertices.
-
Euler's formula (\(v - e + f = 2\)) holds for all connected planar graphs. What if a graph is not connected? Suppose a planar graph has two components. What is the value of \(v - e + f\) now? What if it has \(k\) components?
-
Prove that the Petersen graph (below) is not planar.
Fi àwọn àgbèwọlé hàn
Hint:
What is the length of the shortest cycle? (This quantity is usually called the girth of the graph.)
-
Prove that any planar graph with \(v\) vertices and \(e\) edges satisfies \(e \le 3v - 6\).
Fi àwọn àgbèwọlé hàn
Proof
We know in any planar graph the number of faces \(f\) satisfies \(3f \le 2e\) since each face is bounded by at least three edges, but each edge borders two faces. Combine this with Euler's formula: \[v - e + f = 2\] \[v - e + \frac{2e}{3} \ge 2\] \[3v - e \ge 6\] \[3v - 6 \ge e\].
-
Prove that any planar graph must have a vertex of degree 5 or less.
-
Give a careful proof that the graph below is not planar.
Fi àwọn àgbèwọlé hàn
Hint:
The girth of the graph is 4.
-
Explain why we cannot use the same sort of proof we did in to prove that the graph below is not planar. Then explain how you know the graph is not planar anyway.
Fi àwọn àgbèwọlé hàn
Hint:
What has happened to the girth? Careful: We have a different number of edges as well. Better check Euler's formula.
Symbols used here
Inequalities that allow equality; < and > exclude it.
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
Number of k-element subsets of n things: n!/(k!(n−k)!).
Add a_k for k = 1 up to n.
Multiply a_k for k = 1 up to n.
The set with no elements; the number of elements of A.
How to: Planar Graphs
- Distinguish between planar and non-planar graphs.
- Use Euler's formula to prove that certain graphs are non-planar.
- Apply Euler's formula to polyhedra.
Questions people ask
Permutation or combination?
Ask whether order matters. A lock code is a permutation (order matters); a hand of cards is a combination (it does not).
What is a graph in this sense?
Dots (vertices) joined by lines (edges) — not a plot. Road maps, social networks and molecules are graphs; questions like "is there a route" and "how few colours" are graph theory.
Wárá
Parts of this page are adapted from Keller & Trotter, Applied Combinatorics (CC BY-SA 4.0), Levin, Discrete Mathematics: An Open Introduction (CC BY-SA 4.0). Condensed and re-explained here; errors are ours.
Diẹ̀ nínú Combinatorics & Graph Theory
The counting principlesPigeonhole principle and inclusion–exclusionBinomial coefficients and Pascal's triangleRecurrences and generating functionsGraphs: vertices, edges, degreesPaths, cycles, trees, Euler and HamiltonColouring and planar graphs