CmSc 250 Fundamentals of Computing III Elementary Graph Algorithms Graph Reachability Computing reachability using matrix multiplications Exam-like questions Computing reachability using matrix multiplications Consider the following graph and its adjacency matrix representation Adjacency matrix A: 1 2 3 4 5 1 0 1 1 0 0 2 0 0 0 1 0 3 0 0 0 1 1 4 0 0 0 0 1 5 0 1 0 0 0 Consider now A2 = A x A: aij2 =