5.3 Planar Graphs
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.
There is a connection between the number of vertices (), the number of edges () and the number of faces () in any connected planar graph. This relationship is called Euler's formula.
Why is Euler's formula true? One way to convince yourself of its validity is to draw a planar graph step by step. Start with the graph :
Any connected graph (besides just a single isolated vertex) must contain this subgraph. Now build up to your 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 one, and the number of faces remains the same. But this means that does not change. Completing a circuit adds one edge, adds one face, and keeps the number of vertices the same. So again, does not change.
Since we can build any graph using a combination of these two moves, and doing so never changes the quantity , that quantity will be the same for all graphs. But notice that our starting graph has , and , so . This argument is essentially a proof by induction. A good exercise would be to rewrite it as a formal induction proof.
Non-planar Graphs
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 .
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, will always have edges crossing.
The other simplest graph which is not planar is
Proving that is not planar answers the houses and utilities puzzle: it is not possible to connect each of three houses to each of three utilities without the lines crossing.
Note the similarities and differences in these proofs. Both are proofs by contradiction, and both start with using Euler's formula to derive the (supposed) number of faces in the graph. Then we find a relationship between the number of faces and the number of edges based on how many edges surround each face. This is the only difference. In the proof for , we got and for we go . The coefficient of is the key. It is the smallest number of edges which could surround any face. If some number of edges surround a face, then these edges form a cycle. So that number is the size of the smallest cycle in the graph.
In general, if we let be the size of the smallest cycle in a graph ( stands for girth, which is the technical term for this) then for any planar graph we have . When this disagrees with Euler's formula, we know for sure that the graph cannot be planar.
Polyhedra
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.1
Notice that since , 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.
To conclude this application of planar graphs, consider the regular polyhedra. We claimed there are only five. How do we know this is true? We can prove it using graph theory.
Is it possible for a planar graph to have 6 vertices, 10 edges and 5 faces? Explain.
No. A (connected) planar graph must satisfy Euler's formula: . Here .
The graph has 6 vertices with degrees . How many edges does have? Could be planar? If so, how many faces would it have. If not, explain.
has 10 edges, since . It could be planar, and then it would have 6 faces, using Euler's formula: means . 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.
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.
You can use the handshake lemma to find the number of edges, in terms of , the number of vertices.
I'm thinking of a polyhedron containing 12 faces. Seven are triangles and four are quadralaterals. The polyhedron has 11 vertices including those around the mystery face. How many sides does the last face have?
Say the last polyhedron has edges, and also vertices. The total number of edges the polyhedron has then is . In particular, we know the last face must have an odd number of edges. We also have that . By Euler's formula, we have , and solving for we get , 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 in fact 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 induction on the number of edges in the graph.
Prove Euler's formula using induction on the number of vertices in the graph.
Euler's formula () 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 now? What if it has components?
Prove that the Petersen graph (below) is not planar.
What is the length of the shortest cycle? (This quantity is usually called the girth of the graph.)
Prove that any planar graph with vertices and edges satisfies .
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.
The girth of the graph is 4.
Explain why we cannot use the same sort of proof we did in Exercise to prove that the graph below is not planar. Then explain how you know the graph is not planar anyway.
What has happened to the girth? Careful: we have a different number of edges as well. Better check Euler's formula.
Discrete Mathematics: An Open Introduction, 3rd edition, by Oscar Levin (discrete.openmathbooks.org), licensed under CC BY-SA 4.0; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.