Question
Question: Given an adjacency matrix \[A=[[0,1,1],[101],[110]]\] The total no. of ways in which every vertex ca...
Given an adjacency matrix A=[[0,1,1],[101],[110]] The total no. of ways in which every vertex can walk to itself using 2 edges is
A. 2
B. 4
C. 6
D. 8
Explanation
Solution
So here in this question For this we have to first calculate the A2 then on compare the corresponding vertex of Aand A2, now after comparing both vertexes we can apply simple permutation to find the total no. of ways in which every vertex can walk to itself using 2 edges
Complete step-by-step solution:
We are given an adjacency matrix A=[[0,1,1],[1,0,1],[1,1,0]] and we are asked to finds total no. of ways in which every vertex can walk to itself using 2 edges is
So first we have to calculate A2,