Reading a weighted graph
A weighted graph shows a number on each edge. To find a route total, add the weights of the edges used by that route and keep the stated unit
- Read the edge label The number on a named edge is its weight \(\displaystyle w(A,B)=18\,\text{km}\)
- List the route legs Use each pair of consecutive vertices in the stated route \(\displaystyle A\mathord{-}B\mathord{-}C\)
- Add every used edge Add each route edge exactly once \(\displaystyle 7+12+9=28\,\text{minutes}\)
- Keep the unit State the total using the same unit as the edge weights \(\displaystyle 28\,\text{minutes}\)
Worked example
A delivery route uses the edges P-Q, Q-R and R-S, with weights 11 km, 8 km and 15 km. A separate direct edge P-S has weight 20 km. Find the total length of the stated route P-Q-R-S
- \(\displaystyle P\mathord{-}Q,\quad Q\mathord{-}R,\quad R\mathord{-}S\)The stated route uses these three consecutive edges
- \(\displaystyle 11+8=19\,\text{km}\)Add the first two edge weights
- \(\displaystyle 19+15=34\,\text{km}\)Add the final edge weight to the partial total
- \(\displaystyle 34\,\text{km}\)The stated route has a total length of 34 kilometres
Common mistakes
Difficulty levels
Questions about this topic
What is a weighted graph?+
It is a graph with a numerical weight attached to each edge. In a network, the weights can represent distance, time or cost
How is the length of a route calculated?+
Identify the edges used by consecutive vertices in the route and add their weights once each. Keep the unit used for the edge weights
Does a route with fewer edges always have the smaller total?+
No. A route with more edges can have a smaller total if its edge weights add to less
Can I use a calculator?+
A calculator is allowed unless a question is marked no calculator
Which year level and chapter is this?+
Year 11, VCE Units 1 & 2, General Mathematics, chapter 8: Graphs and networks