Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 General (Unit 3 & 4) Graphs and networks

Planar graphs and Euler's formula

20 practice questions 0 video lessons Theory + worked examples

Discover planar graphs and Euler’s formula in Year 12 General Mathematics for Queensland (QCAA). Engineers laying out tracks on a circuit board, or planners mapping walking paths through a national park, want links that never cross. A graph that can be drawn like that is planar, and its drawing splits the page into regions called faces.

You will learn to redraw graphs to remove crossings, count faces without forgetting the outside one, and use \(v + f - e = 2\) to find a missing number of vertices, faces or edges. You will link it to solids such as dice and prisms, and to the rule that degrees add to twice the edges, before moving on to walks, trails and paths.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A planar graph can be drawn with no edges crossing, and its drawing splits the page into faces. This Year 12 General Mathematics guide for Queensland students shows how to recognise and redraw planar graphs, count faces (including the outside face) and use Euler’s formula \(v + f - e = 2\) to find a missing value.

A planar graph is a graph that can be drawn on a flat page with no two edges crossing. A drawing like that is a planar drawing (or the graph drawn in planar form). A graph drawn with crossings may still be planar: you might be able to move vertices or reroute edges so that the crossings disappear, while every vertex keeps exactly the same connections.

A planar drawing divides the page into regions called faces. Each face is bounded by edges. The unbounded region around the outside of the drawing is also a face, the outside face, and it is always counted. A tree (a graph with no cycles) has only the outside face.

Not every graph is planar. The complete graph \(K_5\) and the complete bipartite graph \(K_{3,3}\) (three houses each joined to three utilities) can never be drawn without a crossing.

Key idea. For any connected planar graph drawn without crossings, the numbers of vertices \(v\), faces \(f\) and edges \(e\) always satisfy Euler’s formula \(v + f - e = 2\).
A planar graph drawn with a crossingSquare A B C D with both diagonals A C and B D, which cross in the middle. A B C D
The edges \(AC\) and \(BD\) cross at a point that is not a vertex, so this drawing is not planar form. The graph itself is planar.
The same graph in planar form with its faces numberedTriangle A B C with D inside joined to A, B and C. Faces F1, F2, F3 inside and F4 outside. A B C D F1F2F3F4
The same graph (same vertices, same connections) redrawn with no crossings. It has \(4\) faces, including the outside face \(F4\): \(4 + 4 - 6 = 2\).

Euler’s formula for a connected planar graph, where \(v\) = vertices, \(f\) = faces (including the outside face) and \(e\) = edges:

\[v + f - e = 2\]
v+f−e=2

When the degrees are known, the number of edges comes from the degree sum (each edge has two ends):

\[e = \dfrac{\text{sum of degrees}}{2}\]
e=∑deg2
Use it as an equation. Substitute the two numbers you know into \(v + f - e = 2\) and solve for the third. If the three counts you made do not give \(2\), a face (often the outside one) or an edge has been missed.

How to use Euler’s formula

  1. Check the conditions. The graph must be connected and drawn (or able to be drawn) with no edges crossing. If edges cross, try to redraw it first.
  2. Count what you can. Count the vertices \(v\) and edges \(e\). Count the faces \(f\) by numbering each region, and include the outside face.
  3. Substitute in order. Write \(v + f - e = 2\), substitute the known values, collect the numbers, then solve for the unknown, one step per line.
  4. Check. Put all three values back into \(v + f - e\) and confirm it equals \(2\).
Example 1 — Count and check
For the planar graph shown, count the vertices, edges and faces, and check that Euler’s formula holds.
Solution

Number each region, including the outside face.

Example 1 planar graphRectangle A B C D with diagonal A C and a roof vertex E joined to C and D. Faces F1 to F3 inside, F4 outside. A B C D E F1F2F3F4
\(v\)\(=\)\(5\)
\(e\)\(=\)\(7\)
\(f\)\(=\)\(4\)
\(v + f - e\)\(=\)\(5 + 4 - 7\)
\(\)\(=\)\(2\)
5+4−7=2

There are \(3\) faces inside the drawing plus the outside face \(F4\), so \(f = 4\), and \(v + f - e = 2\) as expected.

Example 2 — Find the number of faces
A connected planar graph has \(9\) vertices and \(14\) edges. How many faces does a planar drawing of it have?
Solution

Substitute \(v = 9\) and \(e = 14\) into Euler’s formula.

\(v + f - e\)\(=\)\(2\)
\(9 + f - 14\)\(=\)\(2\)
\(f - 5\)\(=\)\(2\)
\(f\)\(=\)\(7\)
f=7

Any planar drawing of this graph has \(7\) faces, counting the outside face. Check: \(9 + 7 - 14 = 2\).

Example 3 — Redraw in planar form
Show that the graph below is planar by redrawing it with no crossings. Then find the number of faces.
Solution

Edges \(AC\) and \(BD\) cross. Move \(B\) into the middle, between \(A\), \(C\) and \(D\), and swing \(E\) out to the left, keeping every connection the same.

Example 3 original drawingPentagon A B C D E with diagonals A C and B D crossing. A B C D E
Example 3 redrawn in planar formA, C, D and E around the outside, B in the middle joined to A, C and D. Faces F1 to F3 inside, F4 outside. A C D B E F1F2F3F4
\(v + f - e\)\(=\)\(2\)
\(5 + f - 7\)\(=\)\(2\)
\(f - 2\)\(=\)\(2\)
\(f\)\(=\)\(4\)
f=4

The redrawn graph has the same \(5\) vertices and \(7\) edges with no crossings, so the graph is planar. It has \(f = 4\) faces.

Example 4 — Edges from degrees, then faces
A gaming die is a regular octahedron. Its corners and edges form a connected planar graph with \(6\) vertices, each of degree \(4\). Find the number of edges, then use Euler’s formula to find the number of faces.
Solution

Halve the degree sum to get \(e\), then substitute into \(v + f - e = 2\).

\(\text{sum of degrees}\)\(=\)\(6 \times 4\)
\(\)\(=\)\(24\)
\(e\)\(=\)\(24 \div 2\)
\(\)\(=\)\(12\)
\(v + f - e\)\(=\)\(2\)
\(6 + f - 12\)\(=\)\(2\)
\(f - 6\)\(=\)\(2\)
\(f\)\(=\)\(8\)
The octahedron as a planar graphOuter triangle A B C and inner triangle D E F, each outer vertex joined to two inner vertices. Every vertex has degree 4. A B C D E F
e=12,f=8

The graph has \(12\) edges and \(8\) faces, matching the \(8\) triangular faces of the die (one of them is the outside face of the drawing).

Common pitfalls

Count the outside face. The region around the outside of the drawing is a face. Watch out for counting only the enclosed regions, which makes \(v + f - e\) come out as \(1\).
A crossing does not make a graph non-planar. A drawing with crossings may still be of a planar graph. Try moving a vertex or rerouting an edge before deciding.
Keep the order of the formula. Write \(v + f - e = 2\) and substitute in that order. Watch out for swapping \(f\) and \(e\) or forgetting that \(e\) is subtracted.

Frequently asked questions

What is a planar graph?

A planar graph is a graph that can be drawn on a flat surface without any of its edges crossing. If a drawing has crossings, the graph may still be planar if it can be redrawn without them.

What is a face of a graph?

A face is a region of a planar drawing that is bounded by edges. The unbounded region outside the drawing is also a face and must be counted.

What is Euler's formula for graphs?

For a connected planar graph, v + f - e = 2, where v is the number of vertices, f the number of faces (including the outside face) and e the number of edges.

Do you count the outside face in Euler's formula?

Yes. The outside face is always included. For example, a single triangle has 3 vertices, 3 edges and 2 faces (inside and outside), and 3 + 2 - 3 = 2.

How do you show a graph is planar?

Redraw it so that no two edges cross, keeping every vertex joined to exactly the same vertices as before. If you can do this, the graph is planar.

Which graphs are not planar?

The best known are the complete graph K5 and the complete bipartite graph K3,3. However they are drawn, at least two edges must cross.