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.
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
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):
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:
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 vertices and edges. Find the sum of the degrees of all vertices, and explain why this must be even.Show worked answer →
Sum of degrees = number of edges = .
The sum of the degrees of all vertices in any graph equals twice the number of edges, because every edge contributes 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 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
- Find a minimum spanning tree for a weighted graph using Prim's or Kruskal's algorithm
A focused answer to the HSC Maths Standard 2 dot point on minimum spanning trees. Definition of a spanning tree and minimum spanning tree, step-by-step Prim's and Kruskal's algorithms, and worked examples for utility networks and rural Australian infrastructure planning.
- Find the shortest path between two vertices in a weighted network by inspection or by systematic labelling
A focused answer to the HSC Maths Standard 2 dot point on shortest paths. Inspection method for small networks, systematic labelling for larger ones, and worked examples for road network distances and Sydney transport routes.
- Construct an activity network from a precedence table, identify the critical path and find the minimum project duration
A focused answer to the HSC Maths Standard 2 dot point on critical path analysis. Building an activity network from a precedence table, identifying paths through the network, and determining the minimum project duration via the critical (longest) path with worked Australian construction examples.