Year 12: Networks

NSWMaths Standard 2Syllabus dot point

What are the basic terms and components of a network, and how are real-world systems represented as graphs?

Use network terminology including vertex, edge, weight, degree, path, cycle and directed graph to describe and analyse networks

A focused answer to the HSC Maths Standard 2 dot point on network terminology. Vertices, edges, weights, directed and undirected graphs, paths and cycles, connected and disconnected components, and worked Australian examples for transport networks and project schedules.

Generated by Claude OpusReviewed by Better Tuition Academy7 min answer

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

What this dot point is asking

NESA wants you to use the standard graph-theory vocabulary (vertex, edge, weight, degree, path, cycle, directed, connected), read a network diagram, and answer basic questions about its structure.

The answer

Weighted undirected graph with four vertices and five edges A graph with vertices A, B, C, D. Edges AB weight 4, AC weight 7, BC weight 3, BD weight 5, CD weight 6. Sum of degrees is 10, equal to twice the number of edges. 4 7 3 5 6 A B C D vertices: 4, edges: 5, sum of degrees: 2 + 3 + 3 + 2 = 10

Basic terminology

  • Vertex (or node). A point in the network. Usually drawn as a labelled circle.
  • Edge (or arc). A line connecting two vertices. Edges may be undirected (a two-way connection) or directed (a one-way arrow).
  • Weight. A number on an edge representing distance, time, cost, capacity, etc.
  • Degree of a vertex. The number of edges connected to it.
  • In-degree and out-degree (for directed graphs). The number of edges pointing in to or out from the vertex.

Types of graphs

  • Undirected graph. Edges have no direction. A road that can be travelled both ways.
  • Directed graph (digraph). Edges have direction (drawn as arrows). A one-way street, or a task that must be completed before another.
  • Weighted graph. Each edge has a number attached (distance, time, cost).
  • Simple graph. No multiple edges between the same pair of vertices, and no loops (an edge from a vertex to itself).

Paths and cycles

  • Walk. A sequence of vertices connected by edges (possibly revisiting).
  • Path. A walk in which no vertex is repeated.
  • Cycle. A path that starts and ends at the same vertex (with at least one intermediate vertex).
  • Length of a path or cycle. Sum of the weights of its edges (for weighted graphs) or the number of edges (for unweighted).

Connectedness

  • Connected graph. Every pair of vertices has at least one path between them.
  • Disconnected graph. Some vertices have no path between them.
  • Component. A maximal connected subgraph. A disconnected graph has multiple components.

Sum of degrees rule

For any graph (directed or undirected):

verticesdegree=2×number of edges.\sum_{\text{vertices}} \text{degree} = 2 \times \text{number of edges}.

This is because every edge contributes one to each of its two endpoints. A useful sanity check: the sum is always even, and equals exactly twice the edge count.

For directed graphs, separately:

in-degree=out-degree=number of directed edges.\sum \text{in-degree} = \sum \text{out-degree} = \text{number of directed edges}.

Representing a graph

Three standard ways:

  • Vertex-edge diagram. Circles with lines between them, with weights on the edges if applicable.
  • Adjacency table. A grid showing whether each pair of vertices is connected.
  • Weighted matrix. A grid showing the weight of the edge between each pair (or blank if no edge).

The HSC usually gives you a diagram; you may need to convert to a table or matrix.

Past exam questions, worked

Real questions from past NESA papers on this dot point, with our answer explainer.

2022 HSC Q92 marksA network has 66 vertices and 99 edges. Find the sum of the degrees of all vertices, and explain why this must be even.
Show worked answer →

Sum of degrees = 2×2 \times number of edges = 2×9=182 \times 9 = 18.

The sum of the degrees of all vertices in any graph equals twice the number of edges, because every edge contributes 11 to each of its two endpoints. So the sum is always even.

Markers reward the formula, the calculation, and the explanation that each edge is counted twice.

2023 HSC Q113 marksA directed graph represents a one-way road network in a small Australian town. List the vertices that have an in-degree greater than out-degree, given vertices labelled A,B,C,D,E,FA, B, C, D, E, F and a description of the directed edges.
Show worked answer →

For each vertex, count edges pointing in (in-degree) and edges pointing out (out-degree). List the vertices for which in-degree exceeds out-degree.

Markers reward correct counting of in and out degrees for each vertex, identification of the vertices satisfying the condition, and clear notation distinguishing in and out degrees. Note that the sum of in-degrees over all vertices equals the sum of out-degrees, both equal to the number of directed edges.

Related dot points