ASCENTLEARNING
Join a weekly class
Skip to learning content
YEAR 12 · MATRIX MODELS · 16 MIN

Network/adjacency matrices

Represent a network in an adjacency matrix and recover its connections.

In this lesson

Before you start
  • Matrix order and entries
01 / LEARN

Understand the idea.

Choose a convention before entering data

For these adjacency matrices, the row identifies the start and the column identifies the destination. In a simple directed network, entry 1 records one arrow and entry 0 records none. A diagonal entry records a loop back to the same vertex.

An arrow from A to B changes row A, column B only. An undirected edge is recorded in both directions, producing matching entries across the diagonal. A symmetric matrix can still have many missing edges.

Labels determine the model

Use the same vertex order for rows and columns when taking powers. If labels are reordered, reorder both dimensions together; otherwise multiplication can join connections through the wrong intermediate vertex.

Explain what nonzero entries measure. Counts of connections, journey times and probabilities have different meanings. Ordinary powers of connection-count matrices count walks; powers of travel-time entries do not automatically give shortest travel times.

Row=start; column=destination.
From / toABC
A011
B001
C100
02 / WORKED EXAMPLES

See the method in action.

EXAMPLE 01

Read a directed network

List the arrows in the adjacency table above.

Worked solution

  1. 1

    Read the A row using row=start.

    aA⁢B=1,aA⁢C=1

    The A row has entries 1 under B and C, so it records A to B and A to C.

  2. 2

    Read the remaining nonzero entries.

    aB⁢C=1,aC⁢A=1

    The B row points to C, and the C row points to A.

  3. 3

    Check for loops and collect the arrows.

    aA⁢A=aB⁢B=aC⁢C=0

    There are no loops. The complete list is A to B, A to C, B to C and C to A; all other entries are zero.

Answer

A→B, A→C, B→C, C→A.

EXAMPLE 02

An undirected example

Rows in A,B,C order are (0,1,0),(1,0,1),(0,1,0). Describe the network.

Worked solution

  1. 1

    Check the diagonal entries.

    aA⁢A=aB⁢B=aC⁢C=0

    No vertex has a loop.

  2. 2

    Pair each connection with its reverse.

    aA⁢B=aB⁢A=1aB⁢C=aC⁢B=1aA⁢C=aC⁢A=0

    The symmetric pairs describe undirected A–B and B–C edges, with no A–C edge.

  3. 3

    Describe the complete network.

    It is the undirected path A–B–C, without loops; the zero A–C pair rules out a triangle.

Answer

The undirected path A–B–C, without loops.

03 / YOUR TURN

Try it yourself.

Check your understanding

Where is C→B recorded in row-start convention?

Show answer & reasoning

Row C, column B.

C is the starting vertex and B is the destination, so C to B is recorded at row C, column B, namely aC⁢B.

Keep practising

6 worksheet questions · 20 marks

Read the questions online
  1. Construct the adjacency matrix, ordered A,B,C, for A→B, B→A, B→C and C→C.
    3 marks
  2. Rows P,Q,R are (020001100). Entries count direct bus services. Interpret the 2.
    3 marks
  3. Rows A,B,C are (011100100). Can this represent an undirected network? List its links.
    3 marks
  4. Explain why zero diagonal entries do not rule out cycles.
    3 marks
  5. Use the diagram and vertex order A,B,C.
    5 marks
    1. (a)
      Write its adjacency matrix using row=start.
      3 marks
    2. (b)
      How many arrows leave A and arrive at C?
      2 marks
  6. Someone swaps the first two rows of an A,B,C adjacency matrix but not its columns, then calls both orders B,A,C. Explain the error.
    3 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Construct the adjacency matrix, ordered A,B,C, for A→B, B→A, B→C and C→C.
    3 marks

    Place a 1 for every stated arrow.

    C→C belongs on the diagonal.

    Rows (010101001).
  2. Rows P,Q,R are (020001100). Entries count direct bus services. Interpret the 2.
    3 marks

    Use row P and column Q.

    The weight is a count, not a probability or a duration.

    Two direct services from P to Q.
  3. Rows A,B,C are (011100100). Can this represent an undirected network? List its links.
    3 marks

    The matrix is symmetric; each link appears in both directions.

    Yes: A–B and A–C.
  4. Explain why zero diagonal entries do not rule out cycles.
    3 marks

    A→B→A is a two-step return without either vertex having a loop.

    They rule out one-step loops only. Longer walks can return to the start.
  5. Use the diagram and vertex order A,B,C.
    5 marks

    a) Read all arrows leaving each vertex.

    b) Sum row A and column C respectively.

    1. (a)
      Write its adjacency matrix using row=start.
      3 marks

      Read all arrows leaving each vertex.

      Rows (011001100).
    2. (b)
      How many arrows leave A and arrive at C?
      2 marks

      Sum row A and column C respectively.

      Two leave A; two arrive at C.
    a) Rows (011001100).; b) Two leave A; two arrive at C.
  6. Someone swaps the first two rows of an A,B,C adjacency matrix but not its columns, then calls both orders B,A,C. Explain the error.
    3 marks

    The old column A is wrongly being treated as column B.

    Its row and column labels no longer agree. Both must be reordered consistently.
Checking saved progress…
Curriculum reference & lesson scope

SACE Board of South Australia

Stage 2 General Mathematics matrix-models option. This is the offered fifth-topic option, alongside the four compulsory topics; a school-designed Open Topic is an alternative, not prescribed content in this chapter.

Official curriculum source ↗

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account