Network Diagrams
Every question with a fully worked solution.
- Network Diagrams - Video - Drawing Network Diagrams 1 Watch
- Network Diagrams - Video - Drawing Network Diagrams 2 Watch
- Network Diagrams - Video - Drawing Network Diagrams 3 Watch
- Network Diagrams - Video - Drawing Network Diagrams 4 Watch
- Network Diagrams - Video - Drawing Network Diagrams 5 Watch
- Network Diagrams - Video - Drawing Network Diagrams 6 Watch
Theory
A network diagram turns real information into vertices and edges: towns and roads, rooms and doors, people and friendships. This Year 11 Mathematics Standard page shows how to draw a network from a list, a description, a floor plan or a table, how to read degrees and edge counts from a table, and how to use the diagram to find total lengths and the quickest route.
To construct a network diagram, decide what the vertices and edges stand for. The vertices are the objects (towns, rooms, people, computers, paddocks) and the edges are the direct connections between them (roads, doors, friendships, cables, tracks). If the connections have a distance, time or cost, write it on the edge as its weight: the diagram is then a weighted network.
A network diagram is not a map. It does not have to be drawn to scale and the vertices can go anywhere: only which vertices are joined (and the weights) matters. Place the vertices so the edges cross as little as possible, and label every vertex.
Information is often given in a table. Each row and each column stands for a vertex. In a 0/1 table (an adjacency table), a \(1\) means the two vertices are joined by an edge and a \(0\) means they are not. In a table of weights, the number is the weight of the direct edge, and a dash (–) means there is no direct edge. For an ordinary (undirected) network each edge appears twice in the table: in row \(X\), column \(Y\) and again in row \(Y\), column \(X\).
To go the other way, from a diagram to a table, the entry in row \(B\), column \(D\) is the weight of the edge joining \(B\) and \(D\) directly, not the length of a longer route.
A network is connected if you can travel along edges from every vertex to every other vertex. If one group of vertices has no edge to the rest, the network is not connected.
Once the diagram is drawn, use it: the degree of a vertex is the number of edges meeting at it, the total length of all the roads is the sum of all the weights, and the length of a route is the sum of the weights along it.
| \(W\) | \(X\) | \(Y\) | \(Z\) | |
|---|---|---|---|---|
| \(W\) | – | 12 | 7 | – |
| \(X\) | 12 | – | 9 | – |
| \(Y\) | 7 | 9 | – | 4 |
| \(Z\) | – | – | 4 | – |
For an undirected network drawn from a table, every edge appears twice (once on each side of the diagonal):
The degree of a vertex is the number of entries in its row (the number of 1s in a 0/1 table, or the number of weights that are not dashes).
Total length of all the edges: add the entries on one side of the diagonal only (adding the whole table counts every edge twice):
Length of a route: add the weight of each edge along it.
Drawing a network diagram
- Choose the vertices: one for each object (town, room, person). For a floor plan, include one vertex for the outside if doors lead outside.
- List the edges: one for each direct connection (road, door, friendship). Write each one once, such as \(AB\).
- Draw: place the vertices, join them, and write the weights on the edges if there are any. Move vertices to avoid crossings where you can.
- Check: count the edges against your list, and check the sum of the degrees is twice the number of edges.
Reading a table
- Edges: use only the entries above the diagonal (row before column), so each edge is read once.
- Degree: count the entries in the vertex's row that are not \(0\) or a dash.
- Total length: add the entries above the diagonal.
- Diagram to table: the entry is the weight of the direct edge only; a dash if there is no direct edge.
Finding the quickest or shortest route
- Draw the network from the information.
- List the sensible routes from the start to the finish (routes that double back are longer).
- Add the weights along each route and choose the smallest total.
- Changes: if an edge is closed, remove it and compare the routes that are left; if a new edge is built, add it to the diagram first.
Ashby–Bell, Ashby–Corrin, Bell–Corrin, Bell–Dunmore, Corrin–Dunmore, Dunmore–Elton, Bell–Elton.
(i) Draw a network diagram, using the first letter of each town as a vertex.
(ii) How many vertices and how many edges does it have?
(iii) Which towns have an odd degree?
(i) Each town is a vertex and each direct service is an edge: \(AB,\ AC,\ BC,\ BD,\ CD,\ DE,\ BE\).
(ii) There are 5 vertices (\(A,\ B,\ C,\ D,\ E\)) and 7 edges.
(iii) Count the edges at each vertex:
\(\deg(A)=2,\ \deg(B)=4,\ \deg(C)=3\)
\(\deg(D)=3,\ \deg(E)=2\)
| \(\text{Sum}\) | \(=\) | \(2+4+3+3+2\) |
| \(=\) | \(14=2\times 7\;\checkmark\) |
The odd vertices are Corrin (\(C\)) and Dunmore (\(D\)).
| \(J\) | \(K\) | \(L\) | \(M\) | \(N\) | |
|---|---|---|---|---|---|
| \(J\) | 0 | 1 | 1 | 0 | 0 |
| \(K\) | 1 | 0 | 1 | 1 | 0 |
| \(L\) | 1 | 1 | 0 | 0 | 1 |
| \(M\) | 0 | 1 | 0 | 0 | 1 |
| \(N\) | 0 | 0 | 1 | 1 | 0 |
(ii) How many edges does it have?
(iii) Find the degree of each vertex.
(iv) Is the network connected?
(i) Read the 1s above the diagonal, row by row: \(JK,\ JL,\ KL,\ KM,\ LN,\ MN\).
(ii) There are 6 edges. Check with the whole table:
| \(\text{Number of 1s}\) | \(=\) | \(12\) |
| \(12\div 2\) | \(=\) | \(6\) |
The network has 6 edges.
(iii) Count the 1s in each row:
\(\deg(J)=2,\ \deg(K)=3,\ \deg(L)=3\)
\(\deg(M)=2,\ \deg(N)=2\)
(iv) Yes. Every computer can be reached from every other one along cables, for example \(J\)–\(K\)–\(M\)–\(N\) and \(J\)–\(L\)–\(N\).
| \(R\) | \(S\) | \(T\) | \(U\) | \(V\) | |
|---|---|---|---|---|---|
| \(R\) | – | 7 | 4 | – | – |
| \(S\) | 7 | – | 3 | 6 | – |
| \(T\) | 4 | 3 | – | 8 | 9 |
| \(U\) | – | 6 | 8 | – | 5 |
| \(V\) | – | – | 9 | 5 | – |
(ii) Find the total length of all the tracks.
(iii) Find the length of the walk \(R\to T\to S\to U\to V\).
(i) Read the entries above the diagonal:
\(RS=7,\ RT=4,\ ST=3,\ SU=6\)
\(TU=8,\ TV=9,\ UV=5\).
Row \(T\) has \(4\) numbers (\(4,\ 3,\ 8,\ 9\)), so \(\deg(T)=\mathbf{4}\).
(ii) Add each track once (entries above the diagonal only):
| \(\text{Total}\) | \(=\) | \(7+4+3+6+8+9+5\) |
| \(=\) | \(42\) |
The tracks total 42 km. (Adding the whole table gives \(84\), which counts every track twice.)
(iii) Read each track on the walk and add:
| \(RT+TS+SU+UV\) | \(=\) | \(4+3+6+5\) |
| \(=\) | \(18\) |
The walk is 18 km.
| \(F\) | \(G\) | \(H\) | \(J\) | \(K\) | |
|---|---|---|---|---|---|
| \(F\) | – | 10 | 18 | – | – |
| \(G\) | 10 | – | 5 | 14 | – |
| \(H\) | 18 | 5 | – | 6 | 16 |
| \(J\) | – | 14 | 6 | – | 4 |
| \(K\) | – | – | 16 | 4 | – |
(ii) The route between \(G\) and \(H\) is closed. What is now the quickest time from \(F\) to \(K\)?
(i) Draw the network from the entries above the diagonal.
Compare the routes from \(F\) to \(K\) (routes that double back, such as \(F\)–\(H\)–\(G\)–\(J\)–\(K\), are longer):
| \(F\text{–}H\text{–}K\) | \(=\) | \(18+16=34\) |
| \(F\text{–}G\text{–}J\text{–}K\) | \(=\) | \(10+14+4=28\) |
| \(F\text{–}H\text{–}J\text{–}K\) | \(=\) | \(18+6+4=28\) |
| \(F\text{–}G\text{–}H\text{–}K\) | \(=\) | \(10+5+16=31\) |
| \(F\text{–}G\text{–}H\text{–}J\text{–}K\) | \(=\) | \(10+5+6+4=25\) |
The quickest time is 25 minutes, by \(F\)–\(G\)–\(H\)–\(J\)–\(K\). It uses the most edges, but they are all short.
(ii) Remove edge \(GH\) and compare the routes that are left:
| \(F\text{–}H\text{–}K\) | \(=\) | \(34\) |
| \(F\text{–}G\text{–}J\text{–}K\) | \(=\) | \(28\) |
| \(F\text{–}H\text{–}J\text{–}K\) | \(=\) | \(28\) |
The quickest time is now 28 minutes (by \(F\)–\(G\)–\(J\)–\(K\) or \(F\)–\(H\)–\(J\)–\(K\)), 3 minutes longer than before.
Common pitfalls
Frequently asked questions
How do you draw a network diagram from a table?
Make a vertex for each row of the table. For each entry above the diagonal that is not a dash or a \(0\), join the two vertices with an edge and write the number on it as the weight.
How do you find the number of edges from a table?
Count the entries that are not dashes or \(0\)s and divide by \(2\), because each edge appears twice. Or count only the entries above the diagonal.
How do you turn a floor plan into a network?
Make a vertex for each room and one for the outside. Draw an edge between two vertices for each door joining them. The degree of a room is the number of doors it has.
Does a network diagram have to be drawn to scale?
No. Only which vertices are joined, and the weights on the edges, matter. Vertices can be placed anywhere, so move them to avoid crossing edges.
What does it mean for a network to be connected?
You can travel along edges from every vertex to every other vertex. If some vertices have no route to the others, the network is not connected.
How do you find the shortest route in a network?
Draw the network, list the sensible routes from start to finish, add the weights along each route and choose the smallest total.