Skip to content
SPM Tuition
Mathematics · Networks in graph theory

Representing a real network as a graph

The situation is clear in words, but turning it into dots and lines feels like guesswork.

To represent a situation as a network, decide what each vertex stands for, decide what each edge stands for, and then list every connected pair before you draw.

This lesson follows identifying vertices, edges and degree in the SPM Mathematics networks chapter.

What is the routine?

  1. Name the things being connected. These are the vertices.
  2. Write one sentence that says what an edge means.
  3. List every connected pair.
  4. Draw the vertices, then one edge per pair.
  5. Count vertices and edges and compare with your list.

Step 3 before step 4 is the habit that prevents missing lines.

Worked example: walkways at a school

A school has five buildings: Library, Canteen, Hall, Labs and Office. Covered walkways join Library to Canteen, Library to Office, Canteen to Hall, Canteen to Labs, and Office to Labs.

Vertices. Let L, C, H, B and O stand for the five buildings.

Edge meaning. An edge means a covered walkway directly joins two buildings.

List of pairs. LC, LO, CH, CB and OB.

That gives 5 vertices and 5 edges. The degrees are L 2, C 3, H 1, B 2 and O 2, which add to 10, equal to 2 × 5.

A useful reading: Hall has degree 1, so it can only be reached through the Canteen.

The mistake that costs marks

The common slip is to draw the network like a map and add a vertex where two walkways cross, or to draw a line for buildings that are merely close together.

Wrong Right
Vertices Extra dot where lines cross Only the five buildings
Edges Hall to Labs because they are nearby Only pairs with a walkway
Basis Position on the ground The edge meaning you wrote

Write the edge meaning first, then test every line against it.

Check yourself

Four students have worked together in pairs: Aiman with Bee, Aiman with Chen, Bee with Chen, and Chen with Devi. Draw this as a network, state the number of vertices and edges, and say who is connected to the most people.

Answer

Vertices: the four students, A (Aiman), B (Bee), C (Chen) and D (Devi). An edge means the two students have worked together.

Edges: AB, AC, BC and CD. That is 4 vertices and 4 edges.

Degrees: A 2, B 2, C 3 and D 1. The sum is 8, equal to 2 × 4. Chen is connected to the most people, with degree 3.

What to study next

Next, learn the names for the kinds of network in distinguishing directed, weighted and simple graphs. The same listing habit supports defining variables and assumptions in modelling. Log slips in the mistake log and paper-error review.

If you want a teacher to go through your drawings, see online one-to-one Mathematics tuition.

Common questions

How do I decide what the vertices are?

Ask what the things being connected are, such as buildings, towns or people. Each one becomes a vertex. Give every vertex its own letter and do not add extras.

How do I decide what the edges are?

Ask what counts as a connection, such as a walkway, a road or having worked together. Draw one edge for each connected pair. Write your definition of an edge in a short note.

Does the drawing need to match the real map?

No. A network shows connections, not distances or positions. You can move the vertices around freely as long as the same pairs are joined.

What if two lines cross in my drawing?

A crossing is not a vertex unless the two lines actually meet at a place being counted. Redraw to avoid crossings when it is easy, and never label a crossing as a vertex.

If you understand the vocabulary but stall on word problems, a one-to-one Mathematics teacher can practise the listing step with you on new situations until you start without help.

  • Online one-to-one lessons for your child with an experienced teacher.
  • Your first class is a one-hour trial, from RM50. The fee is agreed before you book.
  • Happy with the teacher? Continue with lessons of about 1.5 hours. If not, ask for another teacher.