A levels Further Mathematics · Decision mathematics
Graphs and networks
1Vocabulary of graphs
A graph consists of vertices (nodes) joined by edges (arcs). A network is a graph with a number (weight) on each edge, such as a distance or cost.
- The degree (valency) of a vertex is the number of edges meeting it.
- A path is a route that never revisits a vertex. A cycle is a closed path.
- A graph is connected if there is a path between every pair of vertices.
- A tree is a connected graph with no cycles.
- A simple graph has no loops and at most one edge between any two vertices.
A network: 6 vertices, 9 edges, total weight 42. B and E are the only vertices of odd degree.
Check yourself
What is a tree?
Show the answer
A connected graph with no cycles
Trees branch but never close up.
2Degrees and the handshaking lemma
Every edge has two ends, so:
$$\text{sum of degrees} = 2 \times \text{number of edges}$$
This is the handshaking lemma. It means the number of vertices of odd degree is always even.
Counting edges
- In the network shown, the degrees are A 2, B 3, C 4, D 4, E 3, F 2.
- Sum $= 18$, so there are 9 edges.
- There are two odd vertices (B and E), an even number, as expected.
Check yourself
A graph has degrees 3, 3, 2, 4. How many edges does it have?
Show the answer
6
12 ÷ 2.
3Special graphs
- The complete graph $K_n$ joins every pair of $n$ vertices: it has $\frac{n(n - 1)}{2}$ edges.
- A bipartite graph has two sets of vertices, with edges only between the sets. $K_{m,n}$ joins every vertex in one set to every vertex in the other, with $mn$ edges.
- A tree with $n$ vertices has exactly $n - 1$ edges.
- A planar graph can be drawn with no edges crossing. $K_5$ and $K_{3,3}$ are not planar.
Counting
- $K_6$ has $\frac{6 \times 5}{2} = 15$ edges.
- $K_{3,4}$ has $12$ edges.
Check yourself
How many edges does K₅ have?
Show the answer
10
5 × 4 ÷ 2.
4Eulerian graphs
A connected graph is:
- Eulerian (it has a closed trail using every edge exactly once) if every vertex has even degree;
- semi-Eulerian (a trail using every edge once, starting and finishing at different vertices) if exactly two vertices have odd degree. The trail must start at one odd vertex and end at the other.
Drawing without lifting the pen
- The network shown has odd vertices B and E only.
- It is semi-Eulerian: you can trace every edge exactly once by starting at B and finishing at E (or the reverse).
Check yourself
A connected graph has exactly two vertices of odd degree. What kind of trail does it have?
Show the answer
A trail using every edge once, from one odd vertex to the other
It is semi-Eulerian.
5Route inspection
The route inspection (Chinese postman) problem asks for the shortest closed route that travels along every edge at least once.
- Find the odd vertices.
- If there are none, the answer is the total weight.
- If there are two, add the shortest path between them (those edges are repeated).
- If there are four, try all three ways of pairing them and choose the smallest total.
Two odd vertices
- The network shown has total weight 42 and odd vertices B and E.
- The shortest path from B to E is 8 (B–D–E or B–C–E).
- Shortest inspection route $= 42 + 8 = 50$.
If the route may start and finish at different vertices, choose to start and finish at two of the odd vertices and repeat only the best pairing of the others.
Check yourself
Why are edges repeated in route inspection?
Show the answer
To make every vertex have even degree
Then the route can be closed.
6Representing networks
A network can be stored as a distance matrix (a table of edge weights), which is useful for computers and for algorithms such as Prim's.
A distance matrix
- For a network on P, Q, R, S with PQ 5, PR 8, PS 3, QR 4, QS 7, RS 6, the row for P reads: –, 5, 8, 3.
- The matrix is symmetric for an undirected network, because the weight from P to Q equals that from Q to P.
A directed graph (digraph) has arrows on its edges, and its matrix need not be symmetric.
Check yourself
Why is the distance matrix of an undirected network symmetric?
Show the answer
Each edge has the same weight in both directions
Row P column Q equals row Q column P.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera