Linear Algebra and Its Applications · Problem 2.5.21

Vector Spaces — Gilbert Strang

Mathematics · graphs-and-networks

Problem

The adjacency matrix of a graph has Mij=1M_{ij} = 1 if nodes ii and jj are connected by an edge (otherwise Mij=0M_{ij} = 0). For the graph in Problem 6 with 6 nodes and 4 edges, write down MM and also M2M^2. Why does (M2)ij(M^2)_{ij} count the number of 2-step paths from node ii to node jj?

Browse the problem library