Question 19
Let M be an adjacency matrix of a graph G given below, where M[i][j] = 1 if there is an edge from i to j, otherwise 0. ListV represents the list of vertices of the graph G.
Let M be an adjacency matrix of a graph G given below, where M[i][j] = 1 if there is an edge from i to j, otherwise 0. ListV represents the list of vertices of the graph G.
Based on the above data, answer the given subquestions.
newMatrix [2] [4] = 1
newMatrix [1] [1] = 0
newMatrix [3] [0] = 1
newMatrix [1] [3] = 0