Form 4 · Discrete Mathematics
Network in Graph Theory
Networks turn maps, routes and connections into dots and lines you can measure, a very visual, modern chapter.
What is Network in Graph Theory?
A network (graph) is a set of points, called vertices, joined by lines, called edges. This chapter teaches you to read and draw networks, count degrees, find the sum of weights on the edges, and use them to model real situations like routes and connections.
Content standards (DSKP)
The DSKP KSSM sets these content standards for this chapter:
- 5.1 Network
The key ideas
Vertices, edges and degree
The degree of a vertex is how many edges meet at it, the most common quick question.
Directed and weighted networks
Edges can carry a direction (one-way) or a weight (a distance or cost), read which kind the question uses.
Drawing a network from a description
Turning a worded situation into a clear graph is the skill Paper 2 rewards most here.
How this chapter is examined
Expect to draw or complete a network from a table or description, count degrees, and sometimes total the weights along a route. Neat diagrams matter, a cramped sketch causes miscounts.
Paper 2 questions are usually well-structured and generous with method marks if your graph is clear.
How to study this chapter
Common mistakes to avoid
- Miscounting degree when edges are drawn too close together
- Ignoring the direction of a directed edge
- Leaving a network diagram messy so a marker cannot follow it
The sum of degrees is always twice the number of edges
Every edge touches two ends, so each edge adds exactly 1 to the degree of each of its two vertices, 2 in total. Add up the degrees of all vertices and you must get twice the number of edges: Σ(degrees) = 2 × (number of edges).
This gives two things at once. It is a fast way to find a missing degree when the edge count is known, and it is a self-check: the total of all degrees is always even, so if your degrees add to an odd number you have miscounted somewhere.
A loop counts 2 towards its own vertex, and where several edges join the same pair of vertices, each one is counted separately.
Trees and subgraphs
A subgraph is simply part of a network: keep some of the vertices and some of the edges of the original, adding nothing new. A tree is a special connected network with no cycle, you cannot start at a vertex, travel along edges without repeating one, and return to where you began.
Trees have a tidy rule worth knowing: a tree with n vertices has exactly n − 1 edges. So a tree joining 6 towns uses exactly 5 roads.
If a network with n vertices has n − 1 edges and is all in one piece, it is a tree; add one more edge and you create a cycle.
Reading directed and weighted networks
In a directed network each edge is a one-way arrow, so a vertex has two separate counts: its out-degree (arrows leaving it) and its in-degree (arrows entering it). A route must follow the arrows the right way round, you cannot travel against an arrow.
In a weighted network each edge also carries a number: a distance in km, a cost in RM, or a time in minutes. To find the total for a route, list the edges you actually use in order and add only their weights, the vertices themselves carry no value.
Reading the arrows and adding only the edges on your chosen path avoids most of the marks lost in this topic.
A worked exam-style example
This example uses the sum-of-degrees rule to find a missing degree, then totals the weights along a route, two skills Paper 2 often pairs.
- (a) The sum of all degrees equals twice the number of edges: Σ(degrees) = 2 × 9 = 18.
- Add the five known degrees: 3 + 2 + 4 + 3 + 2 = 14.
- Degree of F = 18 − 14 = 4.
- (b) The route uses three edges with weights 5, 8 and 6. Total weight = 5 + 8 + 6 = 19.
Study Network in Graph Theory
Formulas
Frequently asked questions
How this chapter is examined
SPM Mathematics assesses this chapter across Mathematics Paper 1 (Objective) and Mathematics Paper 2 (Subjective), drawing on the DSKP content standards above. Paper 2 gives marks for working, so showing every step matters.
Common mistakes to avoid
Miscounting degree when edges are drawn too close together; Ignoring the direction of a directed edge; Leaving a network diagram messy so a marker cannot follow it.
Are any Network in Graph Theory formulae given in the exam?
This chapter has no formula on the exam formula sheet, the working is expected from memory and method.
How do I count the degree of a vertex correctly?
Count how many edge-ends meet at that vertex, not how many other vertices it reaches. Each ordinary edge adds 1.
A loop, which starts and ends at the same vertex, adds 2. If two vertices are joined by more than one edge, count each of those edges separately.
A quick check: all the degrees added together must be an even number.
What makes a network a tree?
A tree is connected, every vertex can be reached from every other, and has no cycle, meaning there is no way to loop back to a starting vertex without reusing an edge. The clean test is the edge count: a tree with n vertices has exactly n − 1 edges.
If it has more, there must be a cycle; if fewer, it is not all connected.
What do in-degree and out-degree mean in a directed network?
In a directed network every edge is an arrow. The out-degree of a vertex counts the arrows pointing away from it, and the in-degree counts the arrows pointing into it.
A vertex can have different values for the two, three arrows leaving and one entering gives out-degree 3 and in-degree 1. When tracing a route you must always travel in the direction the arrow points.
Source:DSKP KSSM Mathematics Form 4 and 5 (Versi English)· SPM: Format Pentaksiran mulai 2021, Matematik (1449)
Get help with Network in Graph Theory
One-to-one, in English, with your working checked line by line.
Get help with Network in Graph Theory