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

Directed and Weighted Networks from Tables and Maps

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A directed network uses arrows to show one-way connections, and a weighted network puts a distance, time or cost on each edge. This Year 11 Mathematics Standard page shows how to read directed networks, count the edges into and out of a vertex, change between a network and a table (row = from, column = to), draw a network from a map or description, and find route lengths and return trips.

In a directed network the edges have arrows. A directed edge can only be travelled in the direction of its arrow, like a one-way street. Directed networks also model water flowing through pipes, a team beating another team, emails sent from one person to another, or one person following another on social media. A connection that works both ways is drawn as an edge with no arrow, or as two arrows, one in each direction.

At each vertex, count the edges leading out (arrows that start there) and the edges pointing in (arrows that finish there). The number pointing in is the in-degree; the number leading out is the out-degree.

In a weighted network each edge has a number: a distance, time, cost or count. In a directed weighted network the weight can be different in each direction, for example riding uphill takes longer than riding downhill, or a flight costs more one way than the other.

Networks are often given as a table. For an ordinary (undirected) network, the entry in row \(A\), column \(B\) is the same as row \(B\), column \(A\), so the table is symmetric. For a directed network, the row is where the edge comes from and the column is where it goes to. A 1 or a weight means there is an edge; a 0 or a dash means there is not.

To draw a network from a map or a description, make each place a vertex and each road or street an edge. Put an arrow on a one-way street. A two-way street can be drawn as two edges, one in each direction.

A directed networkArrows A to B, B to C, C to A, A to D and D to C. A B C D
From \ To\(A\)\(B\)\(C\)\(D\)
\(A\)–101
\(B\)0–10
\(C\)10–0
\(D\)001–
Row = from, column = to. Row \(C\), column \(A\) is 1 because of the arrow \(C\to A\); row \(A\), column \(C\) is 0. Five 1s, so five directed edges.
Riding times that depend on directionK to L 9 min, L to K 6 min, L to M 11 min, M to L 7 min, M to K 15 min (one way). 9 6 11 7 15 K L M
Riding times in minutes: uphill from \(K\) to \(L\) takes 9 min, downhill from \(L\) to \(K\) only 6 min. There is no arrow from \(K\) to \(M\), so that trip must go \(K\to L\to M\) \((9+11=20\text{ min})\).

In a directed network every edge points into exactly one vertex and out of exactly one vertex, so:

\[\text{number of edges}=\text{sum of the in-degrees}=\text{sum of the out-degrees}\]
number of edges equals the sum of the in-degrees equals the sum of the out-degrees
Network tableNumber of edgesReading it
Directednumber of 1s (or weights)row = from, column = to
Undirectednumber of 1s (or weights) \(\div 2\)each edge appears twice: row \(A\) column \(B\) and row \(B\) column \(A\)

For a route in a weighted directed network, follow the arrows and add the weights:

\[\text{length of a route}=\text{total of the weights on its edges, in the arrow direction}\]
length of a route equals the total of the weights on its edges, in the arrow direction
Edges out of a vertex are the 1s in its row. Edges into a vertex are the 1s in its column.

Reading a directed network

  1. Edges out of a vertex: count the arrows that start there. Edges into a vertex: count the arrows that finish there.
  2. Can you get from one place to another? Follow the arrows from the start. A vertex with no arrows pointing in can never be reached; a vertex with no arrows leading out can never be left.
  3. Route length: add the weights along the route, always in the arrow direction.

Tables

  1. Directed table: row = from, column = to. Each 1 is a different edge, so do not halve.
  2. Undirected table: it is symmetric, and each edge is listed twice.
  3. Return trips: read each leg from its own row and column; the way back can cost a different amount or need a different route.

From a map or description

  1. Draw a vertex for each place.
  2. Draw an edge for each road, with an arrow if it is one-way. A two-way street becomes two edges, one each way.
  3. Label each edge with its weight if one is given, then answer the question from the drawing.
Example 1 — Reading a directed network
The directed network shows the one-way streets between five intersections.
One-way streets for Example 1Arrows A to B, A to D, B to C, C to A, C to E, D to C and E to D. A B C D E
(i) How many one-way streets lead out of \(C\)?
(ii) How many lead into \(D\)?
(iii) The network is written as a table with the “from” vertex in the row and the “to” vertex in the column. What is the entry in row \(D\), column \(C\), and in row \(C\), column \(D\)?
Solution

(i) Count the arrows that start at \(C\): \(C\to A\) and \(C\to E\). So 2 streets lead out of \(C\). The arrows \(B\to C\) and \(D\to C\) lead into \(C\), so they do not count.

(ii) Count the arrows that finish at \(D\): \(A\to D\) and \(E\to D\). So 2 streets lead into \(D\).

(iii) Row \(D\), column \(C\) asks: is there an edge \(D\to C\)? Yes, so the entry is 1.
Row \(C\), column \(D\) asks: is there an edge \(C\to D\)? No: the street between them only goes from \(D\) to \(C\). The entry is 0.

Example 2 — From a table to a network
The table describes a directed network. A 1 means there is an edge from the vertex in the row to the vertex in the column.
From \ To\(P\)\(Q\)\(R\)\(S\)
\(P\)–110
\(Q\)0–11
\(R\)10–0
\(S\)000–
(i) How many directed edges does the network have?
(ii) How many edges point into \(R\)?
(iii) Which vertex, once reached, can never be left?
Solution

Draw the network: row \(P\) gives \(P\to Q\) and \(P\to R\); row \(Q\) gives \(Q\to R\) and \(Q\to S\); row \(R\) gives \(R\to P\).

Directed network drawn from the table in Example 2Arrows P to Q, P to R, Q to R, Q to S and R to P. P Q R S

(i) In a directed table every 1 is a different edge, so do not halve:

\(2+2+1+0\)\(=\)\(5\)
2 plus 2 plus 1 plus 0 equals 5

The network has 5 directed edges. (\(P\to R\) and \(R\to P\) are two separate edges.)

(ii) Edges into \(R\) are the 1s in column \(R\): \(P\to R\) and \(Q\to R\), so 2.

(iii) Row \(S\) has no 1s, so no edge leads out of \(S\). Once you reach \(S\) you can never leave: the answer is \(\boldsymbol{S}\).

Check: the in-degrees are \(P\): 1, \(Q\): 1, \(R\): 2, \(S\): 1, and \(1+1+2+1=5\) edges.

Example 3 — From a street description
In a small town:
Ash St runs one way from home (\(H\)) to the school (\(S\)).
Bell Rd is two-way between \(S\) and the shops (\(M\)).
Cook St runs one way from \(M\) to \(H\).
Dune Rd runs one way from \(H\) to the pool (\(P\)).
Elm St runs one way from \(P\) to \(M\).
Draw a directed network, showing each two-way street as two edges, one in each direction.
(i) How many edges does the network have?
(ii) How many edges lead out of \(H\)?
(iii) Find a route by car from the school to the pool.
Solution

Make each place a vertex. List the directed edges:

\(H\to S\), \(S\to M\), \(M\to S\), \(M\to H\), \(H\to P\), \(P\to M\)

Directed network for the streets in Example 3Arrows H to S, S to M, M to S, M to H, H to P and P to M. H S M P

(i) There are 5 streets, but Bell Rd is two-way and counts twice:

\(5+1\)\(=\)\(6\)
5 plus 1 equals 6

The network has 6 edges.

(ii) Out of \(H\): \(H\to S\) and \(H\to P\), so 2.

(iii) There is no edge \(S\to H\) or \(S\to P\). Follow the arrows: \(S\to M\to H\to P\) (Bell Rd, Cook St, Dune Rd).

Example 4 — Cheapest return trip
The table shows the cost, in dollars, of one-way flights between four towns, from the town in the row to the town in the column. A dash means there is no flight in that direction.
From \ To\(W\)\(X\)\(Y\)\(Z\)
\(W\)–90150–
\(X\)110–50140
\(Y\)–60–70
\(Z\)130–80–
Find the cheapest cost of flying from \(W\) to \(Z\) and then back from \(Z\) to \(W\).
Solution

Draw the directed network, then find each cheapest route, following the arrows.

Flights for Example 4W to X 90, X to W 110, W to Y 150, X to Y 50, Y to X 60, X to Z 140, Y to Z 70, Z to Y 80, Z to W 130 (dollars). 90 110 150 50 60 140 70 80 130 W X Y Z

\(W\) to \(Z\) (there is no direct flight):

\(W\to X\to Z\)\(=\)\(90+140=230\)
\(W\to Y\to Z\)\(=\)\(150+70=220\)
\(W\to X\to Y\to Z\)\(=\)\(90+50+70=210\)
\(W\to Y\to X\to Z\)\(=\)\(150+60+140=350\)
W X Z 230, W Y Z 220, W X Y Z 210, W Y X Z 350

Cheapest: \(\$210\).

\(Z\) to \(W\):

\(Z\to W\)\(=\)\(130\)
\(Z\to Y\to X\to W\)\(=\)\(80+60+110=250\)
Z W 130, Z Y X W 250

Cheapest: \(\$130\).

\(210+130\)\(=\)\(340\)
210 plus 130 equals 340

The cheapest return trip costs \(\mathbf{\$340}\). The two legs use different routes because the flights only go one way.

Common pitfalls

Row is from, column is to. Row \(D\), column \(B\) is the edge \(D\to B\). Reading the table the wrong way round gives the trip backwards.
Do not halve in a directed table. Each 1 is a separate edge. Halving is only for an undirected table, where every edge is written twice.
Follow the arrows at every step. A route that goes against even one arrow is not allowed, and the way back may need a different route or be impossible.
A two-way street counts twice when it is drawn as two directed edges, one in each direction.
Weights can differ each way. In a directed weighted network, \(A\to B\) and \(B\to A\) can have different weights, so read each leg from its own row.

Frequently asked questions

What is a directed network?

A network whose edges have arrows. Each arrow shows the one direction you can travel along that edge, like a one-way street.

How do you read a directed network table?

The row is the vertex the edge comes from and the column is the vertex it goes to. A 1 or a weight in row A, column B means there is an edge from A to B.

How do you count the edges from a table?

For a directed network, count every 1 (or weight). For an undirected network, each edge appears twice, so halve the count.

What is the in-degree of a vertex?

The number of edges pointing into it. The number of edges leading out is the out-degree. The in-degrees of all the vertices add up to the number of edges.

How do you turn a map into a network?

Draw a vertex for each place and an edge for each road. Put an arrow on one-way roads, draw a two-way road as an edge each way (or with no arrow), and write the distance, time or cost on each edge.