Weighted and directed networks
Weights on edges, one-way edges, turning a table or a map into a network diagram, and reading a network back into a table.
A plain network tells you that two places are linked. Real decisions usually need more: how far, how long, how much, and whether you can go both ways. Weights and arrows add exactly that.
Weighted networks
A weighted network has a number on each edge, called its weight. The weight might be a distance in kilometres, a travel time in minutes, a cost in dollars or a pipe length in metres. The question tells you which.
The weight is not the length of the line on the page. A network diagram is about connections, so a $30$ km road may be drawn shorter than a $14$ km one. Always read the number, never the ruler.
From a table to a network
Networks are often stored as a table. Each row and column is a vertex, and the cell where they meet holds the weight of the edge between them. A dash (or a blank) means there is no direct edge.
| km | Pe | Bl | CH | Pa | Li |
|---|---|---|---|---|---|
| Pe | – | 17 | – | – | 30 |
| Bl | 17 | – | 14 | 14 | 22 |
| CH | – | 14 | – | 11 | – |
| Pa | – | 14 | 11 | – | 22 |
| Li | 30 | 22 | – | 22 | – |
The table shows approximate road distances between five western Sydney centres: Penrith (Pe), Blacktown (Bl), Castle Hill (CH), Parramatta (Pa) and Liverpool (Li). Draw the network and find the total length of all the roads.
Directed networks
A directed network has arrows on its edges. You can only travel along an edge in the direction of its arrow. One-way streets, water flowing downhill, a bus loop and "follows" on social media are all directed. Two places can have arrows both ways with different weights. Going uphill takes longer than coming down.
In a table for a directed network, the row is where you start and the column is where you finish. The table is usually not symmetric.
Using the one-way street network above, find the quickest time (a) from A to D (b) from D to A.
From a map to a network
To turn a map into a network, keep the connections and throw away everything else: the shape of the roads, the scale and the compass directions. Ask three questions:
- What are the vertices? (towns, rooms, intersections)
- What counts as an edge? (a direct road, a door, a cable)
- What is the weight, and is any edge one-way?
Two different-looking diagrams can be the same network. If they have the same vertices joined by the same edges with the same weights, they are equivalent, even if one is stretched or twisted.
In Explore, tap a road and find both of its cells in the table. Then switch to one-way streets. Why does B → D have a different number from D → B?
Switch to Build from the table and draw every edge for both networks. Use Check my network to see what you missed.
Your turn
In the one-way network, what is the quickest time from E to C?
Show the working
From E the arrows go to A ($2$) or B ($6$). E → A → B → C $= 2 + 3 + 4 = 9$ min. E → B → C $= 6 + 4 = 10$ min. Quickest: $9$ minutes via A and B.
On a network diagram, the length of an edge as drawn tells you:
Network diagrams aren't to scale. Read the weight.
Using the table of western Sydney distances, how far is it from Castle Hill to Parramatta?
Row CH, column Pa: $11$ km.
How many edges in the western Sydney network meet at Blacktown?
Row Bl has four numbers: Pe $17$, CH $14$, Pa $14$, Li $22$. So Blacktown has degree $4$.
A table for a directed network is not symmetric. This is because:
The row is the start and the column is the finish. Going P to Q and Q to P are different edges, so their cells can differ or be missing.
Every number in a symmetric distance table (both sides of the diagonal) adds up to $520$ km. What is the total length of the roads?
Each road appears twice, so the total is $520 \div 2 = 260$ km.
In the one-way network, what is the quickest time from B to A, in minutes?
Every way back to A ends with E → A. B → D → E → A $= 3 + 5 + 2 = 10$ and B → C → D → E → A $= 4 + 2 + 5 + 2 = 13$. Quickest: $10$ minutes.
Which situation is best modelled by a directed network?
Water only flows one way, downhill. Footpaths, friendships and road distances work both ways.
Exam style: In the one-way network, how many arrows leave vertex B?
Only B → C and B → D leave B, so the answer is $2$. The arrows A → B, E → B and D → B all arrive at B, so they don't count.
Exam style: A delivery van drives Penrith → Blacktown → Parramatta → Castle Hill → Blacktown on the western Sydney network. How far does it travel?
$17 + 14 + 11 + 14 = 56$ km.
Coaching Centre