GATE 2022 CS – Question 52
Which of the properties hold for the adjacency matrix $A$ of a simple undirected unweighted graph having $n$ vertices?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) The diagonal entries of $A^2$ are the degrees of the vertices of the graph.
Explanation
$(A^2)_{ii}=\sum_j a_{ij}a_{ji}=\deg(i)$, so A is true. B fails for bipartite graphs like a 3-vertex path, where parity leaves zero entries in $A^{n-1}$. C fails because a graph with at most n−1 edges can still contain a cycle. D fails for two disjoint edges.