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

Planar graphs and Euler's rule

20 practice questions 0 video lessons Theory + worked examples

Discover Euler’s rule for planar graphs in Year 12 VCE General Mathematics. Engineers laying out tracks on a circuit board, or rangers mapping walking trails at Wilsons Promontory, 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 - e + f = 2\) to find a missing number of vertices, edges or faces. You will see why the graph must be connected, link the rule to solids such as dice, and use the degree sum to count edges, before describing graphs with matrices.

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 students in Victoria shows how to recognise and redraw planar graphs, count faces (including the outside face) and use Euler’s rule \(v - e + f = 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 called a plane drawing of the graph. A graph drawn with crossings may still be planar: you may be able to move vertices or reroute edges so the crossings disappear, while every vertex keeps exactly the same connections.

A plane drawing divides the page into regions called faces, each 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, which has no cycles, has only the outside face.

Not every graph is planar. The complete graph on \(5\) vertices, and the graph of 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\), edges \(e\) and faces \(f\) satisfy Euler’s rule: \(v - e + f = 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 is not a plane drawing. 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 - 6 + 4 = 2\).

Euler’s rule for a connected planar graph, where \(v\) = vertices, \(e\) = edges and \(f\) = faces (including the outside face). Some books call it Euler’s formula and write it in another order, such as \(v + f - e = 2\); it is the same rule.

\[v - e + f = 2\]
v−e+f=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 - e + f = 2\) and solve for the third. If three counts you made do not give \(2\), a face (often the outside one) or an edge has been missed, or the graph is not connected.

How to use Euler’s rule

  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 - e + f = 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 - e + f\) 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 rule 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 - e + f\)\(=\)\(5 - 7 + 4\)
\(\)\(=\)\(2\)
5−7+4=2

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

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

Substitute \(v = 10\) and \(e = 16\) into Euler’s rule.

\(v - e + f\)\(=\)\(2\)
\(10 - 16 + f\)\(=\)\(2\)
\(-6 + f\)\(=\)\(2\)
\(f\)\(=\)\(2 + 6\)
\(f\)\(=\)\(8\)
f=8

Any plane drawing of this graph has \(8\) faces, counting the outside face. Check: \(10 - 16 + 8 = 2\).

Example 3 — Redraw without crossings
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 - e + f\)\(=\)\(2\)
\(5 - 7 + f\)\(=\)\(2\)
\(-2 + f\)\(=\)\(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, matching \(F1\) to \(F4\) in the drawing.

Example 4 — Edges from degrees, then faces
A board-game 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 rule to find the number of faces.
Solution

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

\(\text{sum of degrees}\)\(=\)\(6 \times 4\)
\(\)\(=\)\(24\)
\(e\)\(=\)\(24 \div 2\)
\(\)\(=\)\(12\)
\(v - e + f\)\(=\)\(2\)
\(6 - 12 + f\)\(=\)\(2\)
\(-6 + f\)\(=\)\(2\)
\(f\)\(=\)\(2 + 6\)
\(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. Counting only the enclosed regions makes \(v - e + f\) come out as \(1\).
The graph must be connected. For a graph in two separate pieces, \(v - e + f\) is \(3\), not \(2\). Euler’s rule only applies to a connected planar graph.
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.

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 plane drawing that is bounded by edges. The unbounded region outside the drawing is also a face and must be counted.

What is Euler's rule for graphs?

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

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

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 - 3 + 2 = 2.

Does Euler's rule work for a disconnected graph?

No. The rule needs a connected planar graph. A graph in two separate pieces gives v - e + f = 3.

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.