Networks
Theory
A network is a set of points called vertices joined by lines called edges. This Year 11 Mathematics Standard page explains the degree of a vertex, loops and multiple edges, weighted and directed networks, and why the sum of the degrees is always twice the number of edges.
A network is a set of vertices (the points, or dots) joined by edges (the lines). One point is a vertex; more than one are vertices. Networks model real things: the vertices are the objects (towns, people, rooms, bus stops) and the edges are the connections between them (roads, friendships, doors, bus routes). An edge is named by the two vertices it joins, so the edge joining \(A\) and \(B\) is \(AB\).
Only the connections matter. A network diagram does not have to be drawn to scale, and an edge can be straight or curved: it is still one edge.
The degree of a vertex is the number of edges that meet at it. It is written \(\deg(A)\). A vertex is odd if its degree is odd (1, 3, 5, …) and even if its degree is even (0, 2, 4, …).
Two vertices can be joined by more than one edge (multiple edges): each edge counts separately. A loop is an edge that starts and ends at the same vertex. A loop adds 2 to the degree of its vertex, because both of its ends meet that vertex.
In a weighted network each edge has a number on it, called its weight. The weight is a quantity such as a distance, a time or a cost. The total weight of a route is the sum of the weights of the edges it uses.
In a directed network the edges have arrows, which show the direction you can travel (for example one-way paths) or who does what to whom (for example who follows whom). For a vertex, count the arrows pointing into it and the arrows pointing out of it separately.
Every edge has two ends, and each end adds 1 to the degree of a vertex. So every edge adds 2 to the sum of the degrees:
Turned around, this gives the number of edges from the degrees:
| Feature | Adds to the degree |
|---|---|
| An edge to another vertex | \(1\) |
| Each of several edges between the same two vertices | \(1\) each |
| A loop | \(2\) |
Counting edges
- List the edges by the two vertices they join (\(AB\), \(AE\), …), going round the vertices in order so none is missed or counted twice.
- Count the list. Two edges between the same vertices are listed twice; a loop at \(C\) is listed once.
- Check with the degrees: the number of edges is the sum of the degrees divided by 2.
Finding degrees
- Count the edges that meet at each vertex. Count each of several edges between the same pair separately, and count a loop as 2.
- Write them as \(\deg(A)=3,\ \deg(B)=4,\ \ldots\)
- Odd or even? Sort the degrees into odd and even if the question asks.
- Sum of degrees: add them, and check the sum equals \(2\times\) the number of edges.
Using the sum of degrees
- Number of edges known: sum of degrees \(=2\times\) number of edges.
- One degree missing: find the sum from the edges, then subtract the degrees you know.
- Is it possible? If the degrees add to an odd number, no network has those degrees.
Weighted and directed networks
- Weighted: say what the weights mean (km, minutes, dollars). For a route, add the weights of the edges used.
- Directed: to find how many edges lead into a vertex, count the arrows pointing towards it; for edges leading out, count the arrows pointing away.
(i) the degree of each vertex
(ii) the vertices with an odd degree
(iii) the number of edges, and check it with the sum of the degrees.
(i) Count the edges that meet at each vertex:
\(\deg(P)=2,\ \deg(Q)=4,\ \deg(R)=2\)
\(\deg(S)=2,\ \deg(T)=3,\ \deg(U)=3\)
(ii) The odd degrees are \(3\) and \(3\), so the odd vertices are \(T\) and \(U\).
(iii) List the edges:
\(PQ,\ QR,\ PU,\ QU,\ QT,\ RS,\ ST,\ TU\)
There are 8 edges. Check:
| \(\text{Sum}\) | \(=\) | \(2+4+2+2+3+3\) |
| \(=\) | \(16\) | |
| \(=\) | \(2\times 8\;\checkmark\) |
Two odd vertices: an even number, as it must be.
(i) find the degree of each vertex
(ii) find the sum of the degrees, and use it to find the number of edges.
(i) \(J\) and \(K\) are joined by two edges, so each counts. The loop at \(M\) adds 2 to the degree of \(M\).
\(\deg(J)=3\) (\(JK\), \(JK\), \(JL\))
\(\deg(K)=4\) (\(JK\), \(JK\), \(KL\), \(KM\))
\(\deg(L)=3\) (\(JL\), \(KL\), \(LM\))
\(\deg(M)=4\) (\(KM\), \(LM\), loop)
(ii)
| \(\text{Sum}\) | \(=\) | \(3+4+3+4\) |
| \(=\) | \(14\) | |
| \(\text{Number of edges}\) | \(=\) | \(\dfrac{14}{2}\) |
| \(=\) | \(7\) |
The sum of the degrees is 14 and there are 7 edges: \(JK\), \(JK\), \(JL\), \(KL\), \(KM\), \(LM\) and the loop.
(i) Add the weights of the edges used:
| \(HL+LS+SK\) | \(=\) | \(6+8+3\) |
| \(=\) | \(17\) | |
| \(HP+PS+SK\) | \(=\) | \(10+5+3\) |
| \(=\) | \(18\) |
The route \(H\to L\to S\to K\) takes 17 minutes and \(H\to P\to S\to K\) takes 18 minutes, so \(H\to L\to S\to K\) is quicker by 1 minute.
(ii) Arrows pointing towards \(X\): \(W\to X,\ Y\to X\).
Arrows pointing away from \(X\): \(X\to Z,\ X\to V\).
2 edges lead into \(X\) and 2 edges lead out of \(X\).
(ii) A network has \(6\) vertices and \(8\) edges. Five of the vertices have degrees \(2,\ 3,\ 3,\ 2\) and \(4\). Find the degree of the sixth vertex.
(iii) Sam says he has drawn a network whose vertices have degrees \(1,\ 2,\ 3,\ 3\) and \(4\). Explain why this is impossible.
(i) Each edge adds 2 to the sum of the degrees:
| \(\text{Sum of degrees}\) | \(=\) | \(2\times\text{number of edges}\) |
| \(=\) | \(2\times 11\) | |
| \(=\) | \(22\) |
The sum of the degrees is 22.
(ii) Find the sum from the edges, then subtract the degrees you know:
| \(\text{Sum of degrees}\) | \(=\) | \(2\times 8=16\) |
| \(16-(2+3+3+2+4)\) | \(=\) | \(16-14\) |
| \(=\) | \(2\) |
The sixth vertex has degree 2.
(iii) Add the degrees:
| \(1+2+3+3+4\) | \(=\) | \(13\) |
The sum of the degrees must be \(2\times\) the number of edges, which is always even. \(13\) is odd, so no network has these degrees. (There are three odd vertices, \(1\), \(3\) and \(3\), and a network always has an even number of odd vertices.)
Common pitfalls
Frequently asked questions
What is a vertex and an edge in a network?
A vertex is a point (dot) in the network and an edge is a line joining two vertices. Vertices are the objects, such as towns or people; edges are the connections, such as roads or friendships.
How do you find the degree of a vertex?
Count the edges that meet at the vertex. Count each of several edges between the same two vertices separately, and count a loop as \(2\).
Why is the sum of the degrees twice the number of edges?
Every edge has two ends, and each end adds \(1\) to the degree of a vertex. So each edge adds \(2\) to the total: sum of degrees \(=2\times\) number of edges.
Can a network have an odd number of odd vertices?
No. The sum of the degrees is always even, so the number of odd vertices is always even: \(0\), \(2\), \(4\), and so on.
What is a weighted network?
A network with a number, called a weight, on each edge. The weight is a quantity such as a distance, time or cost. The total weight of a route is the sum of the weights of its edges.
What is a directed network?
A network whose edges have arrows showing direction, such as one-way paths or who follows whom. Count the arrows pointing into a vertex and those pointing out of it separately.