Using Euler’s Formula to Find a Missing Count
In a plane graph, vertices, edges, and faces are linked by an equation. When two of these counts are known, the third is determined. The calculation is short, but it depends on using the right graph and the right counts: the graph must be connected and embedded in the plane, and the face count includes the unbounded face.
Throughout this tutorial, graphs are finite and simple unless stated otherwise. A plane graph is a graph together with a particular drawing in the plane in which edges meet only at common endpoints. Its faces are the regions of the plane left after removing the drawing, including the unbounded region. Write \(V=|V(G)|\) for the number of vertices, \(E=|E(G)|\) for the number of edges, and \(F\) for the number of faces in the given plane embedding.
Rearranging the equation gives three ways to find a missing count. Use the form that isolates the unknown, then substitute the result back into the original equation. This substitution is a basic arithmetic check; it does not, by itself, prove that arbitrary supplied counts come from a particular plane embedding.
In each equation, the two counts on the right must belong to the same connected plane graph. If all three counts are supplied, the equation instead provides a consistency test: the counts must satisfy \(V-E+F=2\). Passing that numerical test is necessary, but without further information it does not certify a particular graph or embedding.
Finding the Number of Faces
To calculate \(F\), use \(F=2-V+E\). Be careful with the sign of \(V\): it is subtracted. A connected plane tree, for instance, has one face, and the formula will give that result because a tree on \(V\) vertices has \(E=V-1\). The examples below specify the graphs and their embeddings so that the inputs and checks are explicit.
Worked Example: The Face Count of a Plane Path
Let \(G\) have vertex set \(V(G)=\{1,2,3,4,5\}\) and edge set \(E(G)=\{12,23,34,45\}\), drawn as a non-self-intersecting path in the plane. Find its number of faces.
There are \(V=5\) vertices and \(E=4\) edges. Since this is a connected plane graph, Euler’s formula applies. Solving for \(F\) gives
Check: Substitute the answer into the original formula: \(V-E+F=5-4+1=1+1=2\). This agrees with Euler’s formula. The drawing is also a tree, and a tree in a plane embedding has one face.
The order of subtraction matters. In the example, \(2-5+4=1\), not \(2-4+5\). When working quickly, it is safer to write the general rearrangement first and then substitute each count in its place.
Worked Example: A Cycle in the Plane
Let \(G\) have vertex set \(V(G)=\{1,2,3,4,5\}\) and edge set \(E(G)=\{12,23,34,45,51\}\), drawn as a convex pentagon. Find the number of faces.
The graph has \(V=5\) and \(E=5\). It is connected, so
Check: \(V-E+F=5-5+2=0+2=2\), as required. In the specified drawing, the pentagon encloses one bounded face, and the region outside it is the unbounded face, giving two faces in total.
Finding an Edge or Vertex Count
The same formula can be rearranged to find \(E\) or \(V\). For the edge count, add \(E\) and subtract \(2\) from the original relation to obtain \(E=V+F-2\). For the vertex count, move \(F\) to the other side and add \(2\), giving \(V=E-F+2\). Keeping the original relation in view helps prevent sign errors.
Worked Example: Finding the Number of Edges
Consider the plane graph with vertex set \(V(G)=\{a,b,c,d,x\}\) and edge set \(E(G)=\{ab,bc,cd,da,xa,xb,xc,xd\}\). Draw \(a,b,c,d\) in that order around a square and place \(x\) inside, joining it to all four corners. The graph is connected and has four bounded triangular faces and one unbounded face. If \(V=5\) and \(F=5\), find \(E\).
Using the edge-count form of Euler’s formula gives
Check: The stated edge set contains the four square edges \(ab,bc,cd,da\) and the four edges \(xa,xb,xc,xd\), so it has \(4+4=8\) edges. Substituting all three counts gives \(V-E+F=5-8+5=-3+5=2\). Both checks agree.
Worked Example: Finding the Number of Vertices
Let \(G\) have vertex set \(V(G)=\{1,2,3,4,5\}\) and edge set \(E(G)=\{12,23,34,45,51,13\}\). Draw \(1,2,3,4,5\) in that order around a convex pentagon, with the additional edge \(13\) as a diagonal. This is a connected plane graph with \(E=6\) and \(F=3\): the diagonal divides the pentagon into two bounded regions, and there is one unbounded face. Find the vertex count using only \(E\) and \(F\).
Use the vertex-count form:
Check: The listed vertex set contains five vertices. Substitution also gives \(V-E+F=5-6+3=-1+3=2\), as required.
Why the Missing Count Is Unique
The rearrangements are not separate formulas that give competing answers. Each is equivalent to the same equation. Consequently, once any two counts of a connected plane graph are fixed, there can be at most one value of the third count that satisfies Euler’s formula.
Proof. Assume \(V-E+F=2\). If \(V\) and \(E\) are fixed, subtract \(V\) from both sides and add \(E\) to both sides to obtain \(F=2-V+E\), so there is only one possible value of \(F\). If \(V\) and \(F\) are fixed, add \(E\) to both sides and subtract \(2\) to obtain \(E=V+F-2\), so there is only one possible value of \(E\). If \(E\) and \(F\) are fixed, add \(E\) to both sides and subtract \(F\) from both sides to obtain \(V=E-F+2\), so there is only one possible value of \(V\). These rearrangements also show that each displayed candidate satisfies the original equation. \(\square\)
A useful arithmetic consequence is that \(V+F\) and \(E\) have the same parity: they are either both even or both odd.
Proof. Starting from \(V-E+F=2\), add \(E\) to both sides to get \(V+F=E+2\). Since \(2\) is even, \(E+2\) and \(E\) have the same parity. Therefore \(V+F\) and \(E\) have the same parity. \(\square\)
This parity relation is a quick check on a proposed set of counts, but it is weaker than Euler’s formula: passing the parity check alone does not establish that the counts satisfy the full equation.
Checking Consistency and Avoiding Scope Errors
Suppose someone proposes \(V=5\), \(E=5\), and \(F=3\) for a connected plane graph. Substitution gives \(V-E+F=5-5+3=0+3=3\), not \(2\). These counts cannot belong to a connected plane graph. This is a useful diagnostic: it finds an inconsistency without needing to redraw the graph.
Do not use the connected formula automatically when the graph has more than one connected component. The hypothesis is not a technical detail; the corresponding formula for disconnected plane graphs differs. First establish that the graph is connected, or use the appropriate result for disconnected plane graphs from the earlier material.
Also distinguish a plane graph from a planar graph. A planar graph is one that can be drawn in the plane without crossings; a plane graph includes a particular such drawing. The face count \(F\) refers to that drawing. For a connected planar graph, Euler’s formula holds for any crossing-free plane embedding, but when counting faces in a problem, be sure to count regions in the stated embedding and include the unbounded one.
Common Pitfalls
Incorrect rearrangement. A frequent error is to write \(F=2+V-E\). The correct rearrangement is \(F=2-V+E\): from \(V-E+F=2\), subtract \(V\) and add \(E\) to both sides. For example, if \(V=5\) and \(E=4\), the correct calculation is \(F=2-5+4=1\), not \(2+5-4=3\). The corrected value checks because \(5-4+1=2\).
Dropping the unbounded face. In the convex pentagon example, there is one bounded region and one unbounded region, so \(F=2\), not \(1\). Omitting the unbounded face would give \(5-5+1=1\), which fails Euler’s formula.
Using the wrong hypotheses. Before calculating, check that the graph is connected and that the input \(F\) counts all regions of its plane embedding. If either condition fails, the connected-graph calculation may not apply as written.
Check Your Understanding
For each question, identify the counts and the connectedness assumption before applying Euler’s formula. Check numerical answers by substitution.
- A connected plane graph has \(V=8\) and \(E=11\). How many faces does it have?
- A connected plane graph has \(V=6\) and \(F=4\). How many edges does it have?
- A connected plane graph has \(E=9\) and \(F=4\). How many vertices does it have?
- Can \(V=7\), \(E=10\), and \(F=4\) be the counts of a connected plane graph? Verify using the full equation and the parity check.
- Why must the unbounded region be included when using Euler’s formula?