Q&A

# Before we can run the PageRank algorithm, we need to modify the adjacency matrix, A, that you obtained in the

Before we can run the PageRank algorithm, we need to modify the adjacency matrix, A, that you obtained in the previous page. The matrix must satisfy the transition matrix property, which states that the column sums are equal to 1. In your code snippet, write the function transition that takes as an argument the adjacency matrix A and returns the transition matrix M. Remember that early in the basketball season, many teams may have not yet played against each other. Or you may have a situation of a team that lost all the games against another given team. What can you do in a situation like this