Skip to main content
ExamExplained
WA · Mathematics Applications
Mathematics Applications study scene
§-Syllabus dot point
WAMathematics ApplicationsSyllabus dot point

How do we describe a graph precisely and record it as a matrix?

Use vertex, edge, degree, loop and multiple-edge terminology, apply the handshake rule, and represent a graph with an adjacency matrix.

How to use the core graph vocabulary of vertices, edges, degree, loops and multiple edges, apply the handshake rule, and translate between a graph and its adjacency matrix.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The vocabulary
  3. The handshake rule
  4. The adjacency matrix
  5. Reading a matrix back into a graph

What this dot point is asking

You must use the core vocabulary correctly, apply the handshake rule, and translate both ways between a graph and its adjacency matrix.

The vocabulary

Other terms appear throughout networks: a graph is connected if you can reach every vertex from every other; a subgraph uses some of the vertices and edges; a complete graph joins every pair of vertices exactly once.

The handshake rule

Each edge contributes one edge-end to each of its two vertices, so it adds 22 to the total degree count. This gives a checking rule used constantly.

Use it to check your degree count or to find a missing degree. If five of six vertices have degrees 3,3,4,2,23, 3, 4, 2, 2 and the graph has 99 edges, the degrees must sum to 1818, so the sixth vertex has degree 1814=418 - 14 = 4.

The adjacency matrix

An adjacency matrix is a square array with one row and one column per vertex. The entry in row ii, column jj is the number of edges joining vertex ii to vertex jj.

  • For an undirected graph the matrix is symmetric: entry (i,j)(i,j) equals entry (j,i)(j,i).
  • A loop contributes 22 to the diagonal entry for that vertex (it joins the vertex to itself with two edge-ends).
  • Multiple edges show as entries greater than 11.
  • The degree of a vertex is the sum of its row (counting a diagonal loop entry as is, since it already counts 22).

Reading a matrix back into a graph

Given a matrix, reverse the process: each off-diagonal entry tells you how many edges join those two vertices, and a diagonal entry of 22 marks a loop. The matrix is the compact, calculator-friendly way to store a network, which is why SCSA uses it for the matrix-power method of counting walks between vertices.

In a transport network this is useful: if the matrix records direct flights between cities, the squared matrix gives the number of one-stopover (two-flight) routes between each pair, and the sum of a matrix and its square counts routes of up to two legs. Interpreting such an entry in context (for example, "there are three two-flight routes from city AA to city DD") is a standard application of matrix powers to graphs.

Exam-style practice questions

Practice questions written in the style of SCSA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

WACE 20225 marksA graph has vertices AA, BB, CC, DD with edges ABAB, ACAC, BCBC, BDBD, CDCD and a loop at AA. (a) State the degree of each vertex. (b) Verify the handshake rule. (c) Write the adjacency matrix.
Show worked answer →

Count edge-ends at each vertex; a loop adds 22 to its vertex's degree.

(a) deg(A)=1+1+2=4\deg(A) = 1 + 1 + 2 = 4 (edges ABAB, ACAC and the loop), deg(B)=3\deg(B) = 3 (ABAB, BCBC, BDBD), deg(C)=3\deg(C) = 3 (ACAC, BCBC, CDCD), deg(D)=2\deg(D) = 2 (BDBD, CDCD). (2 marks)

(b) Sum of degrees =4+3+3+2=12=2×6= 4 + 3 + 3 + 2 = 12 = 2 \times 6 edges (the loop counts as one edge), so the handshake rule holds. (1 mark)

(c) Order A,B,C,DA, B, C, D. With the loop at AA entered as 22 on the leading diagonal: row A=(2,1,1,0)A = (2,1,1,0), row B=(1,0,1,1)B = (1,0,1,1), row C=(1,1,0,1)C = (1,1,0,1), row D=(0,1,1,0)D = (0,1,1,0). (2 marks)

Markers reward the loop contributing 22 to both degree and the diagonal entry, and a symmetric matrix for an undirected graph.

WACE 20244 marksExplain the difference between a simple graph and a graph that is not simple, then state what feature of an adjacency matrix shows that a graph is undirected.
Show worked answer →

A simple graph has no loops and no multiple edges between the same pair of vertices.

A graph that is not simple contains at least one loop (an edge joining a vertex to itself) or multiple edges (two or more edges between the same pair of vertices). (2 marks)

An undirected graph has a symmetric adjacency matrix: the entry in row ii, column jj equals the entry in row jj, column ii, because each edge is counted in both directions. (2 marks)

Markers reward the loop-and-multiple-edge definition and the symmetry of the matrix for undirected graphs.

ExamExplained