Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Standard (2026) Networks, Paths and Trees

Network Diagrams

20 practice questions 6 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 6 video(s)
  • 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
Create a free accountTrack your progress and save your work as you go.
Create free account

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.

A floor plan and its networkA floor plan with three rooms: Lounge on the left, Kitchen top right and Bedroom bottom right. Doors join Outside and Lounge, Outside and Kitchen, Lounge and Kitchen, and Lounge and Bedroom. The network has vertices Outside, Lounge, Kitchen and Bedroom with one edge for each door. LoungeKitchenBedroom(gaps in the walls are doors)→ Lounge Kitchen Bedroom Outside
One vertex for each room and one for the outside, one edge for each door. \(\deg(\text{Outside})=2\), \(\deg(\text{Lounge})=3\), \(\deg(\text{Kitchen})=2\), \(\deg(\text{Bedroom})=1\).
\(W\)\(X\)\(Y\)\(Z\)
\(W\)–127–
\(X\)12–9–
\(Y\)79–4
\(Z\)––4–
Network drawn from a table of distancesVertices W, X, Y and Z. Edges WX 12, WY 7, XY 9 and YZ 4 kilometres. 12 7 9 4 W X Y Z
The table (distances in km, dash = no direct road) has \(8\) numbers but only \(4\) edges, because each road appears twice. Total length of the roads \(=12+7+9+4=32\) km.

For an undirected network drawn from a table, every edge appears twice (once on each side of the diagonal):

\[\text{Number of edges}=\dfrac{\text{number of entries (not dashes or 0s)}}{2}\]
number of edges equals the number of entries divided by 2

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):

\[\text{Total of all edges}=\dfrac{\text{sum of the whole table}}{2}\]
total of all edges equals the sum of the whole table divided by 2

Length of a route: add the weight of each edge along it.

\[P\to Q\to R:\quad \text{total}=PQ+QR\]
route P to Q to R total equals P Q plus Q R
Sum of degrees check. Once the diagram is drawn, the sum of the degrees must equal \(2\times\) the number of edges. If it does not, an edge has been missed or drawn twice.

Drawing a network diagram

  1. Choose the vertices: one for each object (town, room, person). For a floor plan, include one vertex for the outside if doors lead outside.
  2. List the edges: one for each direct connection (road, door, friendship). Write each one once, such as \(AB\).
  3. 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.
  4. Check: count the edges against your list, and check the sum of the degrees is twice the number of edges.

Reading a table

  1. Edges: use only the entries above the diagonal (row before column), so each edge is read once.
  2. Degree: count the entries in the vertex's row that are not \(0\) or a dash.
  3. Total length: add the entries above the diagonal.
  4. 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

  1. Draw the network from the information.
  2. List the sensible routes from the start to the finish (routes that double back are longer).
  3. Add the weights along each route and choose the smallest total.
  4. 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.
Example 1 — From a list of connections
A bus company runs direct services between these pairs of towns:
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?
Solution

(i) Each town is a vertex and each direct service is an edge: \(AB,\ AC,\ BC,\ BD,\ CD,\ DE,\ BE\).

Network of bus services between five townsVertices A (Ashby), B (Bell), C (Corrin), D (Dunmore) and E (Elton). Edges AB, AC, BC, BD, CD, DE and BE. A B C D E

(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\)
sum of degrees 14 equals 2 times 7 edges

The odd vertices are Corrin (\(C\)) and Dunmore (\(D\)).

Example 2 — From a 0/1 table
The table shows the direct cables between five computers (\(1\) = a direct cable).
\(J\)\(K\)\(L\)\(M\)\(N\)
\(J\)01100
\(K\)10110
\(L\)11001
\(M\)01001
\(N\)00110
(i) Draw the network diagram.
(ii) How many edges does it have?
(iii) Find the degree of each vertex.
(iv) Is the network connected?
Solution

(i) Read the 1s above the diagonal, row by row: \(JK,\ JL,\ KL,\ KM,\ LN,\ MN\).

Network from a 0/1 tableVertices J, K, L, M and N. Edges JK, JL, KL, KM, LN and MN. J K L M N

(ii) There are 6 edges. Check with the whole table:

\(\text{Number of 1s}\)\(=\)\(12\)
\(12\div 2\)\(=\)\(6\)
there are 12 ones, 12 divided by 2 equals 6 edges

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\).

Example 3 — From a table of distances
The table shows the lengths, in km, of the walking tracks that directly join five lookouts. A dash means there is no direct track.
\(R\)\(S\)\(T\)\(U\)\(V\)
\(R\)–74––
\(S\)7–36–
\(T\)43–89
\(U\)–68–5
\(V\)––95–
(i) Draw the weighted network and find \(\deg(T)\).
(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\).
Solution

(i) Read the entries above the diagonal:
\(RS=7,\ RT=4,\ ST=3,\ SU=6\)
\(TU=8,\ TV=9,\ UV=5\).

Weighted network of walking tracksVertices R, S, T, U and V. Edge weights in km: RS 7, RT 4, ST 3, SU 6, TU 8, TV 9, UV 5. 7 4 3 6 8 9 5 R S T U V

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\)
total equals 7 plus 4 plus 3 plus 6 plus 8 plus 9 plus 5 equals 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\)
R T plus T S plus S U plus U V equals 4 plus 3 plus 6 plus 5 equals 18

The walk is 18 km.

Example 4 — Quickest route from a table
The table shows the travel times, in minutes, along the direct bus routes between five suburbs. A dash means there is no direct route.
\(F\)\(G\)\(H\)\(J\)\(K\)
\(F\)–1018––
\(G\)10–514–
\(H\)185–616
\(J\)–146–4
\(K\)––164–
(i) By drawing a network diagram, find the quickest travel time from \(F\) to \(K\).
(ii) The route between \(G\) and \(H\) is closed. What is now the quickest time from \(F\) to \(K\)?
Solution

(i) Draw the network from the entries above the diagonal.

Weighted network of bus travel timesVertices F, G, H, J and K. Edge weights in minutes: FG 10, FH 18, GH 5, GJ 14, HJ 6, HK 16, JK 4. 10 18 5 14 6 16 4 F G H J K

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\)
F H K 34, F G J K 28, F H J K 28, F G H K 31, F G H J K 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\)
without G H: F H K 34, F G J K 28, F H J 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

Each edge is in the table twice. Row \(X\), column \(Y\) and row \(Y\), column \(X\) are the same edge. A table with \(18\) numbers (not dashes) has \(18\div 2=9\) edges, not \(18\). Read only the entries above the diagonal.
A table entry is a direct edge only. The entry for \(B\) and \(D\) is the weight of edge \(BD\). A route through another vertex, such as \(B\)–\(C\)–\(D\), does not go in the table, even if it is shorter.
Degree counts edges, not their weights. A vertex with one long road of \(30\) km still only gets \(1\) from that road. Count the entries in its row; do not add them.
A diagram is not a map. The position of the vertices and the lengths of the lines drawn do not matter. Two networks that look different are the same if the same vertices are joined with the same weights.
Fewest edges is not always quickest. Add the weights of every sensible route before choosing. In Example 4 the route with four edges (\(25\) min) beats the direct-looking route \(F\)–\(H\)–\(K\) (\(34\) min).

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.