Topic 13 | Space

Networks and graph theory

Year 10 core: vertices and edges, network diagrams for real situations, degree of a vertex, connected graphs, Euler's formula, Eulerian paths and circuits, and practical applications.

45-60 min Printable practice Answer key Challenge included
How to use this page

Read the explanation, work through the examples, then complete the core practice before printing.

Study progress: Not started

What you will learn

Worked example 0 Real-world example: bridge inspection

A council must inspect every bridge in a river district. The district has 55 land masses connected by 88 bridges. Can an inspector walk a route that crosses every bridge exactly once?

  1. Model the land masses as vertices and bridges as edges.
  2. Count the degree (number of edges) at each vertex.
  3. An Eulerian path exists if there are exactly 00 or 22 vertices with odd degree.
  4. If 22 vertices have odd degree, the path must start at one and end at the other.
  5. If all degrees are even, the inspector can complete an Eulerian circuit (returning to the start).

Key idea: the answer depends entirely on vertex degrees, not on the shape of the network.

1. What is a network?

A network (or graph) consists of vertices (also called nodes) connected by edges (also called arcs). Networks can model any situation involving objects and connections between them.

ABCDEdeg 3deg 3deg 2deg 2deg 4
A simple network with 5 vertices (A to E) and 7 edges.

The degree of a vertex is the number of edges connected to it. In the graph above:

VertexDegree
A3
B3
C2
D2
E4
Total14

The sum of all degrees always equals twice the number of edges (here 2×7=142 \times 7 = 14), because each edge contributes 11 to the degree of each of its endpoints.

Handshaking lemma

degrees=2×edges\sum \text{degrees} = 2 \times |\text{edges}|

A graph is connected if you can travel from any vertex to any other vertex by following edges.

2. Euler’s formula for planar graphs

A planar graph can be drawn on a flat surface with no edges crossing. For any connected planar graph:

Euler's formula

Faces, vertices, edges

F+V=E+2F + V = E + 2

where FF is the number of faces (regions, including the outer infinite region), VV is the number of vertices, and EE is the number of edges.

Worked example 1 Verifying Euler's formula

A planar graph has V=6V = 6 vertices and E=9E = 9 edges. How many faces does it have?

  1. F+V=E+2F + V = E + 2
  2. F+6=9+2=11F + 6 = 9 + 2 = 11
  3. F=5F = 5

The graph has 55 faces (including the outer region).

3. Eulerian paths and circuits

An Eulerian path traverses every edge exactly once. An Eulerian circuit is an Eulerian path that starts and ends at the same vertex.

ConditionResult
All vertices have even degreeEulerian circuit exists
Exactly 22 vertices have odd degreeEulerian path exists (start at one odd vertex, end at the other)
More than 22 vertices have odd degreeNeither path nor circuit exists
Worked example 2 Checking traversability

For the network in the diagram above (vertices A to E), determine whether an Eulerian path or circuit exists.

  1. Degrees: A=3A = 3, B=3B = 3, C=2C = 2, D=2D = 2, E=4E = 4.
  2. Odd-degree vertices: AA and BB (two vertices).
  3. Since exactly 22 vertices have odd degree, an Eulerian path exists.
  4. The path must start at AA and end at BB (or vice versa).
  5. One such path: ACEABDEBA \to C \to E \to A \to B \to D \to E \to B.

4. Practical applications

Worked example 3 Minimum spanning tree thinking

Five towns are to be connected by roads. The costs (in thousands of dollars) for each possible road are shown below. What is the minimum total cost to connect all five towns?

RoadCost
A—B5
A—C8
B—C3
B—D7
C—D4
C—E6
D—E2
  1. Start with the cheapest edge: DDEE (cost 22).
  2. Next cheapest: BBCC (cost 33). No cycle formed.
  3. Next: CCDD (cost 44). No cycle formed.
  4. Next: AABB (cost 55). No cycle formed.
  5. All 55 towns are now connected using 44 edges. Total cost =2+3+4+5=14= 2 + 3 + 4 + 5 = 14 (thousands).

Key idea: a spanning tree connecting nn vertices always has exactly n1n - 1 edges.


Practice

Fluency

Tier 1: basic skills

    1. A network has 44 vertices with degrees 2,3,3,42, 3, 3, 4. How many edges does it have?
    2. Draw a network with 44 vertices where every vertex has degree 22.
    3. A connected planar graph has 44 vertices and 66 edges. How many faces does it have?
    4. A network has vertices with degrees 2,2,4,42, 2, 4, 4. Does an Eulerian circuit exist? Explain.
    5. A network has vertices with degrees 1,2,2,31, 2, 2, 3. Does an Eulerian path exist? Explain.
    6. True or false: a connected graph with 55 vertices must have at least 44 edges.
    7. State Euler’s formula and define each variable.
    8. A network has 88 edges. What is the sum of all vertex degrees?
Reasoning

Tier 2: mixed practice

    1. A connected planar graph has 55 faces and 88 edges. How many vertices does it have?
    2. Draw a network representing the direct flights between four cities: Melbourne, Sydney, Brisbane, and Perth. Melbourne has direct flights to all three cities; Sydney and Brisbane are connected; Perth has no direct flight to Brisbane or Sydney. How many edges does your network have?
    3. A postman must walk along every street in a neighbourhood. The network has vertex degrees: 2,2,2,4,4,42, 2, 2, 4, 4, 4. Can the postman complete an Eulerian circuit? Justify your answer.
    4. A network has 66 vertices and 1010 edges. Verify that it cannot be planar using the inequality E3V6E \leq 3V - 6 for simple planar graphs.
    5. Three houses and three utilities (water, gas, electricity) must each be connected to every utility. Draw this as a bipartite network. How many edges are there? Is this graph planar?
Reasoning

Tier 3: explain and apply

    1. A council wants to inspect every road in a town. The town’s network has 66 intersections. Four intersections have degree 33 and two have degree 44. Explain why an Eulerian path does not exist, and describe a strategy the council could use to inspect all roads.
    2. Prove that in any network, the number of vertices with odd degree is always even. (Hint: use the handshaking lemma.)
    3. A connected planar graph has 1010 vertices, each of degree 33. Find the number of edges and faces.
    4. Explain the difference between a Hamiltonian path and an Eulerian path. Give an example of a graph that has an Eulerian circuit but no Hamiltonian circuit.

Challenge

Reasoning

Harder reasoning

    1. The complete graph K5K_5 has 55 vertices, each connected to every other vertex. Calculate the number of edges, the degree of each vertex, and determine whether an Eulerian circuit exists.
    2. A network has VV vertices and is a tree (connected with no cycles). Prove that it has exactly V1V - 1 edges.
    3. Seven bridges connect four land masses. The vertex degrees are 3,3,3,53, 3, 3, 5. Show that it is impossible to walk a route crossing each bridge exactly once. (This is the Konigsberg bridge problem.)
    4. A delivery driver must visit 66 locations. The distances (km) between each pair are given. The driver starts and ends at the depot (location A). Outline how you would use a network to find an efficient route, and explain why finding the absolute shortest route is computationally difficult for large networks.
Answers

Answer key

Attempt the practice first. When you're ready to check, expand the answers below.

Show the full answer key

Tier 1

    1. Sum of degrees =2+3+3+4=12= 2 + 3 + 3 + 4 = 12. Number of edges =122=6= \dfrac{12}{2} = 6.
    2. A square (cycle graph C4C_4): four vertices arranged in a loop, each connected to its two neighbours.
    3. F+V=E+2F + V = E + 2, so F+4=6+2=8F + 4 = 6 + 2 = 8, giving F=4F = 4.
    4. Yes. All vertex degrees (2,2,4,42, 2, 4, 4) are even, so an Eulerian circuit exists.
    5. Vertices with odd degree: the vertex with degree 11 and the vertex with degree 33 (two odd-degree vertices). So an Eulerian path exists (but not a circuit). It must start at one odd-degree vertex and end at the other.
    6. True. A connected graph with nn vertices needs at least n1n - 1 edges (a spanning tree). For n=5n = 5, at least 44 edges.
    7. F+V=E+2F + V = E + 2, where FF = number of faces (regions), VV = number of vertices, EE = number of edges. Applies to connected planar graphs.
    8. Sum of degrees =2×8=16= 2 \times 8 = 16.

Tier 2

    1. F+V=E+2F + V = E + 2, so 5+V=8+2=105 + V = 8 + 2 = 10, giving V=5V = 5.
    2. Edges: Melbourne—Sydney, Melbourne—Brisbane, Melbourne—Perth, Sydney—Brisbane. Total =4= 4 edges.
    3. Yes. All degrees (2,2,2,4,4,42, 2, 2, 4, 4, 4) are even, so an Eulerian circuit exists. The postman can walk every street exactly once and return to the starting point.
    4. For a simple planar graph: E3V6E \leq 3V - 6. Here 3×66=123 \times 6 - 6 = 12 and E=1012E = 10 \leq 12, so this test alone does not prove non-planarity. In fact, a graph with 66 vertices and 1010 edges could be planar. (The complete graph K4K_4 has 66 edges; K5K_5 has 1010 edges and is not planar.) Since K5K_5 is the unique simple graph on 55 vertices with 1010 edges, but we have 66 vertices, a graph with 66 vertices and 1010 edges may or may not be planar depending on its structure. The inequality is necessary but not sufficient.
    5. Three houses and three utilities: each house connects to each utility, giving 3×3=93 \times 3 = 9 edges. This is the complete bipartite graph K3,3K_{3,3}, which is not planar (by Kuratowski’s theorem).

Tier 3

    1. Four vertices have odd degree (33). Since more than 22 vertices have odd degree, no Eulerian path (or circuit) exists. Strategy: the council could identify pairs of odd-degree vertices and add duplicate edges (roads walked twice) to make all degrees even, minimising the total extra distance. This is the Chinese Postman approach.
    2. The handshaking lemma states degrees=2E\sum \text{degrees} = 2E. The left side is the sum of all degrees. Suppose kk vertices have odd degree. Each odd degree contributes an odd number to the sum, and each even degree contributes an even number. The total must be 2E2E (even). The sum of the even degrees is even. So the sum of the odd degrees must also be even, which requires kk to be even. Therefore the number of odd-degree vertices is always even.
    3. Edges: sum of degrees =10×3=30= 10 \times 3 = 30, so E=302=15E = \dfrac{30}{2} = 15. Faces: F+V=E+2F + V = E + 2, so F+10=15+2=17F + 10 = 15 + 2 = 17, giving F=7F = 7.
    4. An Eulerian path visits every edge exactly once. A Hamiltonian path visits every vertex exactly once. Example: consider a graph shaped like a “bowtie” (two triangles sharing a single vertex). It has 55 vertices and 66 edges. The central vertex has degree 44 and all others have degree 22 — all even, so an Eulerian circuit exists. However, no Hamiltonian circuit exists because the graph is not 22-connected (removing the central vertex disconnects it).

Challenge

    1. K5K_5: each vertex connects to 44 others, so each has degree 44. Number of edges =(52)=10= \dbinom{5}{2} = 10. All degrees are even (44), so an Eulerian circuit exists.
    2. Base case: V=1V = 1, edges =0=11= 0 = 1 - 1. Inductive step: a tree with V>1V > 1 vertices has at least one leaf (vertex of degree 11). Remove the leaf and its edge: the remaining graph is a connected tree with V1V - 1 vertices and (by hypothesis) V2V - 2 edges. Adding the leaf back gives V1V - 1 edges. So a tree on VV vertices has V1V - 1 edges.
    3. The vertex degrees are 3,3,3,53, 3, 3, 5 — all four are odd. Since there are 44 odd-degree vertices (more than 22), no Eulerian path or circuit exists. It is impossible to cross each bridge exactly once.
    4. Model locations as vertices and distances as weighted edges. An efficient route visiting all locations and returning to the start is a Hamiltonian circuit. You can try nearest-neighbour or other heuristics. Finding the absolute shortest Hamiltonian circuit (the Travelling Salesman Problem) is computationally difficult because the number of possible routes grows factorially: for nn locations there are (n1)!2\dfrac{(n-1)!}{2} distinct routes. For large nn, checking all routes is impractical, so heuristic or approximation methods are used.

Prefer paper? Print the answer key as a separate booklet: open print view ->