- IB
- Question Type 4: Finding lengths of paths between vertices using adjacency matrices
Matrices and Graph Theory
Given the adjacency matrix of a transportation network between cities :
Determine the number of distinct routes of exactly two legs (two buses) that exist from city to city .
[3]For the directed adjacency matrix
determine the total number of walks of length 3 originating at vertex 1 (i.e., the row sum of the first row of ).
[5]Consider a graph representing four research groups with adjacency matrix
Compute the total number of distinct collaborative sequences of three steps starting at and ending at .
[4]A directed network of four cities, A, B, C, and D, is represented by the adjacency matrix and its square shown below:
where rows 1 to 4 and columns 1 to 4 correspond to cities A, B, C, and D respectively.
Determine the total number of two-transfer routes (paths of length 3) starting and ending at city B.
[3]Let be a cycle graph on 5 vertices with adjacency matrix . Compute the entry and interpret its meaning in terms of walks of length 2.
[4]Given the adjacency matrix
compute and determine the number of distinct paths of length 2 from vertex 1 to vertex 3.
[3]For the directed graph with adjacency matrix
compute and find the number of paths of length 3 from vertex 2 to vertex 4.
[5]Matrices in social networks.
In a social network with adjacency matrix
calculate and interpret its meaning in terms of 'friend-of-a-friend' connections.
[3]Given the adjacency matrix of a 6-city airline network, where cities are numbered 1–6:
How many routes of exactly 4 flights exist from city 2 to city 5?
[4]In a network of 5 computers with adjacency matrix
calculate the number of distinct 2-hop walks that start and end at computer 3 (i.e., ).
[3]A directed web graph has adjacency matrix
Determine whether there is at least one path of length 4 from page 1 to page 3 by checking .
[5]