7A

The language of networks

Vertices, edges and degree, the sum of degrees rule, connected networks, and the difference between a walk, a trail, a path and a cycle.

Look at the Sydney Trains map on the wall of any carriage. Stations are dots, lines join the stations you can travel between, and the drawing is nowhere near to scale. Nobody cares that Blacktown is drawn too close to Parramatta. All that matters is what connects to what. That idea is the whole of network maths.

Vertices, edges and degree

  • A network is a set of points called vertices (one is a vertex) joined by lines called edges.
  • Vertices are the things: stations, suburbs, people, computers. Edges are the links between them: tracks, roads, friendships, cables.
  • The degree of a vertex is the number of edges that meet at it. A vertex with degree $0$ is isolated.
  • A network is connected if you can get from every vertex to every other vertex along edges.

Here is the one rule worth remembering. Every edge has two ends, and each end adds $1$ to the degree of the vertex it touches. So when you add up all the degrees, every edge has been counted exactly twice.

Sum of degrees
$$\text{sum of all degrees} = 2 \times \text{number of edges}$$

Two quick consequences. The sum of degrees is always even. And the number of vertices with an odd degree is always even, because odd numbers can only add to an even total in pairs.

A network with six vertices and nine edges.
Example 1●

For the network above, find the degree of each vertex and check the sum of degrees rule.

A: $3$, B: $4$, C: $2$, D: $3$, E: $4$, F: $2$
Count the edges touching each vertex. Run your pencil around the vertex so you don't miss one.
$3 + 4 + 2 + 3 + 4 + 2 = 18$
Add the degrees.
There are $9$ edges, and $2 \times 9 = 18$. ✓
Count the edges directly and double it. The two totals must agree.
A and D have odd degree: two of them, an even number. ✓
Odd-degree vertices always come in pairs.

Walks, trails, paths and cycles

A route through a network is a list of vertices, each joined to the next by an edge. Exams use four names for routes, and the difference is all about what is allowed to repeat.

NameEdges repeat?Vertices repeat?Think of it as
Walkallowedallowedany route at all
Trailnoallowednever use the same road twice
Pathnononever visit the same place twice
Cyclenoonly start = enda path that comes back home

The names are nested. Every path is a trail, and every trail is a walk, but not the other way round. A closed trail that passes through some vertex twice on the way is called a circuit.

Example 2●●

Using the network in Example 1, name each route: (a) F–A–B–C–D (b) A–B–E–A (c) A–B–D–E–B–C (d) A–B–E–B–C

(a) path
Five different vertices, so no vertex and no edge repeats.
(b) cycle
It starts and ends at A, and no other vertex repeats.
(c) trail
B appears twice, but the edges AB, BD, DE, EB, BC are all different.
(d) walk
It goes B to E and then straight back E to B, using edge BE twice.

Networks in real life

The same vocabulary works wherever things are linked:

  • Transport: stations and lines, suburbs and roads, airports and flights.
  • Utilities: houses and water pipes, NBN nodes and fibre, substations and power lines.
  • Social networks: people and friendships. Your degree is your number of friends, and the sum of degrees rule says the total number of "friend counts" across a class is even.
  • Projects: tasks and the order they must happen in (you'll meet these in Year 12).
InteractiveBuild a network of Parramatta suburbs
Try this

In Edit roads, add and remove roads and watch the sum of degrees. Can you ever make the number of odd vertices equal to $1$ or $3$? Why not?

Disconnect Granville from everything else. What happens to "Connected?"

Switch to Trace a route. Make a path of $4$ edges, then a cycle, then a trail that isn't a path, then a walk that isn't a trail.

Your turn

A network has $8$ vertices. Four have degree $3$, three have degree $2$ and one has degree $4$. How many edges does it have?

Show the working

Sum of degrees $= 4 \times 3 + 3 \times 2 + 1 \times 4 = 12 + 6 + 4 = 22$. Number of edges $= 22 \div 2 = 11$.

Flashcards
Degree of a vertex
The number of edges that meet at it
Sum of degrees
$2 \times$ the number of edges
Walk, trail, path
Walk: anything goes. Trail: no repeated edges. Path: no repeated vertices.
Cycle
A path that returns to its starting vertex
Practice
  1. The degrees of the vertices of a network add to $20$. How many edges does it have?

  2. Which route uses no edge twice but visits a vertex twice?

  3. In the network from Example 1, how many vertices have degree $4$?

  4. Could a network have vertices of degree $3, 3, 2, 1$?

  5. A network is connected when:

  6. In a group chat network, each vertex is a student and each edge means "has messaged". Eight students have each messaged exactly $3$ others. How many edges?

  7. Every path is also:

  8. A connected network has $7$ edges and $6$ vertices. Five vertices have degrees $1, 2, 2, 3, 4$. Find the degree of the sixth vertex.

  9. Exam style: In the Example 1 network, which route is a cycle?

  10. Exam style: A network has $6$ vertices. Each vertex is joined to exactly $3$ others. How many edges does it have?

Formula sheet