DP Math AI · HL · Geometry and Trigonometry

AHL 3.15—Adjacency matrices and tables

Get started
Notes Quiz
Free preview 2/16
  1. Question 1

    A simple undirected graph has 4 vertices with edges 1–2, 2–3, 2–4, 3–4. What is the sum of the entries in row 2 of the adjacency matrix?
    No clue? Show me the answer
    Correct answerCorrect!Incorrect
    A3

    Step-by-step walkthrough

    Choose a solution method

    Method #1Worked solution

    Step 1: Vertex 2's edges

    Vertex 2 is connected to vertices 1, 3, and 4 according to the edge list.

    Step 2: Row sum rule

    The sum of row i in an adjacency matrix equals the degree of vertex i, i.e. the number of edges incident to it.

    Step 3: Count edges at vertex 2

    Vertex 2 has edges to 1, 3, and 4, giving degree 3.

    Step 4: Conclusion

    The row sum for vertex 2 is 3.

    Method #2Why the others are wrong

    Step 1: Option A: 2

    This undercounts by missing one of the three edges connected to vertex 2.

    Step 2: Option C: 4

    This overcounts, perhaps by double-counting an edge or including a non-existent self-loop.

    Step 3: Option D: 1

    This only counts one edge, ignoring that vertex 2 has three connections.

    Step 4: Correct count

    Only 3 correctly reflects the three edges 1–2, 2–3, 2–4.

  2. Question 2

    An undirected simple graph has vertices A, B, C with edges A–B and B–C only. Which matrix is the correct adjacency matrix (order A,B,C)?
    No clue? Show me the answer
    Correct answerCorrect!Incorrect
    B​010​101​010​​

    Step-by-step walkthrough

    Choose a solution method

    Method #1Worked solution

    Step 1: List edges

    The graph has edges A–B and B–C only, with no edge between A and C.

    Step 2: Symmetric entries

    Since the graph is undirected, place 1 in both (A,B)/(B,A) and (B,C)/(C,B).

    Step 3: Fill remaining entries

    The (A,C) and (C,A) entries are 0 since there's no edge; diagonal is 0 for a simple graph.

    Step 4: Final matrix

    This gives ​010​101​010​​.

    Method #2Why the others are wrong

    Step 1: Option B

    This incorrectly includes an edge between A and C, which does not exist.

    Step 2: Option C

    This has non-zero diagonal entries, implying self-loops which aren't present in a simple graph.

    Step 3: Option D

    This is not symmetric, treating the graph as directed when it is undirected.

    Step 4: Correct choice

    Option A correctly represents only the two existing edges symmetrically.

Free preview

14 more questions in this topic

← Previous topicAHL 3.14—Graph theoryNext topic →AHL 3.16—Tree and cycle algorithms, Chinese postman, travelling salesman
Koncepts

Learn it properly. Then practise like it's the real paper.

Start free

Features

  • Lessons
  • Past papers
  • Library
  • Homework Help
  • Duels
  • EE/TOK evaluator

More

  • For parents
  • Compare
  • Plans & pricing
  • DP for students

Legal

  • Privacy
  • Terms
  • Account deletion

© 2026 Koncepts (product of PrepAiro, Inc). All rights reserved.
DP, IB, EE and TOK are terms of the International Baccalaureate Organization.

Made for IB DP students.