Mathematics: Applications and Interpretation · Topic 3: Geometry and trigonometry
AHL3.15 — Adjacency matrices and walks
Mathematics: Applications and Interpretation · SL / HL · syllabus-mapped notes
AIAHL3.15.1
Adjacency matrices
Record which vertices are joined in a square matrix.
Full note — freeAn adjacency matrix $M$ of a graph on $n$ vertices is the $n\times n$ matrix whose entry $M_{ij}$ counts the edges directly joining vertex $i$ to vertex $j$ (link to matrices, AHL1.14). For an undirected graph the matrix is symmetric ($M_{ij}=M_{ji}$). For a directed graph, $M_{ij}$ counts edges from $i$ to $j$, and the matrix need not be symmetric. A loop at a vertex contributes to the diagonal entry.
AIAHL3.15.2
Counting walks with matrix powers
Read the number of k-length walks from powers of the matrix.
A walk of length $k$ is a sequence of $k$ edges travelled in turn (vertices and edges may repeat). Powers of the adjacency matrix count them: $$\text{the }(i,j)\text{ entry of }M^{k}\text{ = number of }k\text{-length walks from }i\text{ to }j$$ Number of walks of length …
AIAHL3.15.3
Weighted tables and transition matrices
Store weights in a table and build transition matrices.
A weighted adjacency table stores the edge weights (costs, distances or times) in place of the $0$/$1$ entries, giving a table of the weight between each pair of vertices. Empty (no direct edge) entries are left blank or marked as having no connection. A transition …
