Skip to content
  1. IB Question Bank
  2. Maths AI
  3. Geometry & Trigonometry
Topic 3.17 · HL only

Graph theory basics (simple/directed graphs, subgraphs, trees): notes and practice questions

Summary
  • Vertex (Node): A point representing an object or place.
  • Edge (Arc): A line connecting two vertices.
  • Adjacent Vertices: Directly connected by an edge.
  • Degree of a Vertex: Total number of edges connected to it.
  • Loop: An edge starting and ending at the same vertex.
  • Simple Graph: Undirected, unweighted, no loops, no multiple edges.
  • Directed Graph (Digraph): Edges have a specific direction (arrows).
  • In-degree: Number of edges leading into a vertex.
  • Out-degree: Number of edges leaving from a vertex.
  • Weighted Graph: Edges assigned numerical values (weights).
  • Complete Graph: Every vertex is directly connected to every other vertex.
  • Connected Graph: A route exists between any two vertices.
  • Strongly Connected Graph (Digraph): A route exists in either direction between any two vertices, obeying arrow directions.
  • Subgraph: A smaller graph containing a selection of edges and vertices from a main graph G.
  • Tree: A connected graph with no cycles, where any two vertices are connected by exactly one path.
  • Spanning Tree: A subgraph that is a tree and contains all vertices from the original graph G.
  • Adjacency Matrix: A grid representing connections between vertices.
  • Undirected Graph Matrix: Symmetrical along the leading diagonal. Diagonal entry is 0 for no loop, 2 for an undirected loop.
  • Directed Graph Matrix: Not usually symmetrical. Diagonal entry is 1 for a directed loop.
  • Walks of Length n: The number of walks of length nn from vertex A to vertex B is the value in row A, column B of the matrix MnM^n.
  • Walks of Length n or less: The total number of walks of length nn or less from vertex A to vertex B is the value in row A, column B of the sum:

Sn=M+M2+M3+...+MnS_n = M + M^2 + M^3 + ... + M^n

  • GDC Use: Use a Graphical Display Calculator (GDC) to compute matrix powers (MnM^n) and sums (M+M2+M3M + M^2 + M^3) for walks.
  • Exam Technique: Clearly state the matrix calculation (e.g., M4M^4) used on the GDC for method marks.

How it is examined

Mostly vocabulary marks, one each, feeding into AHL 3.15 and AHL 3.16 where the real work is. Getting the terms exactly right matters: connected and strongly connected are different things, and a directed graph has in degree and out degree rather than a single degree. Questions usually supply the graph as a figure, so this subtopic needs figure support in the question rather than drawing support in the answer.

Key ideas
  • Graph theory: graphs, vertices, edges, adjacent vertices, adjacent edges, and the degree of a vertex.
  • Simple graphs, complete graphs, weighted graphs.
  • Directed graphs; the in degree and out degree of a directed graph.
  • Subgraphs; trees.

Linking questions

  • Aim 8: the importance of symbolic maps, for example Metro and Underground maps, structural formulae in chemistry, electrical circuits.
  • TOK: mathematics and knowledge claims. Consider the proof of the four-colour theorem. If a theorem is proved by computer, how can we claim to know it is true?

Practice questions

2 questions · 2 hard
Showing 2 of 2

Question 1

HardPaper 1 · calculator5 marks
(a)

A data network connects several hubs, represented by vertices A, B, C, D, E. The numbers on the edges represent the cost (in hundreds of dollars) to lay a new fibre optic cable between two hubs. An engineer needs to inspect all existing cables.

Weighted graph with vertices A, B, C, D, E and edges with weights, including one labeled x. Edges are AB=6, BC=4, CD=7, DE=5, EA=3, BD=2, AC=x. All weights are positive.

Write down the vertices with odd degree.

[1]
(b)

The total cost of all existing cables is 2700+100x2700 + 100x dollars. The engineer wants to traverse every cable in the network, starting and ending at the same hub, while minimizing the total distance travelled. This may involve traversing some cables more than once.

Find two expressions, in terms of xx, for the minimum total cost (in hundreds of dollars) required to traverse all cables, beginning and ending at the same hub.

Include in your answer the interval of values of xx for which each expression is valid.

[4]

Question 2

HardPaper 3 · calculator14 marks
(a)(i)

A new suburb is being planned with 10 plots of land. The road network connecting these plots is modelled as a simple, connected graph GG, where the plots are vertices and roads are edges.

(a) (i) Write down the minimum number of roads required to connect all 10 plots.

[1]
(a)(ii)

(a) (ii) Find the maximum number of roads that could be built if every plot is directly connected to every other plot.

[2]
(a)(iii)

(a) (iii) The local council wants to design the road network so that a garbage truck can travel along each road exactly once and return to its starting depot (one of the plots). Find the maximum number of roads possible in such a network.

[2]
(b)(i)

A biochemist is studying fullerenes, which are molecules of carbon in the form of a hollow sphere. The structure of a fullerene can be represented by a connected, planar graph FF, where carbon atoms are vertices (vv), covalent bonds are edges (ee), and the rings of atoms are faces (ff). Each face is a polygon with mm edges.

(b) (i) By considering the total number of edges counted face by face, explain why 2e=mf2e = mf.

[2]
(b)(ii)

(b) (ii) A hypothetical fullerene, C20C_{20}, is composed entirely of pentagonal faces (m=5m=5). Given that it has 20 vertices (v=20v=20), find the number of faces, ff.

[3]
(b)(iii)

(b) (iii) Another hypothetical fullerene has 28 vertices (v=28v=28). It is known that all its faces are identical polygons. Find the possible values for the number of faces, ff.

[4]

Every Graph theory basics (simple/directed graphs, subgraphs, trees) question, marked for you

Every answer is marked mark by mark, IB-style, and the AI tutor helps when you are stuck.

Where marks are lost

  • Answering to the wrong accuracy. Two significant figures, or six, where the rule says exactly or three. Common wherever a GDC's full decimal display gets copied straight down.
  • Rounding an intermediate value and then using it in a later part. Costs a mark every time, and AI's multi-part modelling questions give it more chances to happen than AA's shorter, more self-contained ones.
  • Writing the answer and nothing else, where the mark scheme has an explicit M1 rather than an implied one. A bare answer cannot score full marks there.
Free. Every IB subject.
No card, no trial that runs out. Just a free account.
  • 50 marked answers a month
    Marked mark by mark, IB-style
  • Hints and mark schemes
    On every part of every question
  • 3,000+ questions
    All 6 subjects, SL and HL, mapped to the syllabus
  • Progress that adapts
    Your Study Profile picks what to practise next

Practise this topic as a session

Pick a difficulty and paper, and FourtyFive tracks your progress on this topic as you go.

or with email
FAQ

Questions,
answered.

Can't find what you're looking for? Email our student team.

What does Graph theory basics (simple/directed graphs, subgraphs, trees) cover in IB Maths AI?

Vertex (Node): A point representing an object or place. Edge (Arc): A line connecting two vertices. Adjacent Vertices: Directly connected by an edge.

Is Graph theory basics (simple/directed graphs, subgraphs, trees) SL or HL?

Graph theory basics (simple/directed graphs, subgraphs, trees) is HL only. SL students are not examined on it.

How do I revise Graph theory basics (simple/directed graphs, subgraphs, trees) for IB Maths AI?

Start from the core idea: vertex (Node): A point representing an object or place. In the exam: mostly vocabulary marks, one each, feeding into AHL 3.15 and AHL 3.16 where the real work is. Getting the terms exactly right matters: connected and strongly connected are different things, and a directed graph has in degree and out degree rather than a single degree. Then practise exam-style questions, easiest first, writing out every step of your working before you check it.

How does FourtyFive help me practise Graph theory basics (simple/directed graphs, subgraphs, trees)?

FourtyFive has 2 Graph theory basics (simple/directed graphs, subgraphs, trees) questions. Every answer you write is marked mark by mark, IB-style, and you see where each mark was won or lost. Every part has a hint, the AI tutor helps you through the step you are stuck on, and your Study Profile picks what to practise next.

Is FourtyFive free for Graph theory basics (simple/directed graphs, subgraphs, trees) practice?

Yes. A free account gives you 50 marked answers a month, and you do not need a card to sign up.

Can I handwrite Graph theory basics (simple/directed graphs, subgraphs, trees) answers on an iPad?

Yes. In the FourtyFive iPad app you write your working by hand with Apple Pencil, the way you would on paper, and it is marked the same way.

Start with the IB question
bank built for you.

Free to start, no card needed. Thousands of syllabus-mapped questions, AI Examiner marking, your weakest topics first.