Which of the properties hold for the adjacency matrix A of a simple undirected unweighted graph having n vertices?
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2022 · Q52
Time
Select all that applyOne or more correct
Solution
Official answer: A) The diagonal entries of A2 are the degrees of the vertices of the graph.
Graph TheoryLet be the adjacency matrix of a simple, undirected, unweighted graph .
Option (A): The -th entry of is given by:
Since is symmetric and entries are or , . Therefore, . Hence, the diagonal entries of are indeed the degrees of the vertices. (True)
Option (B): For a connected bipartite graph (e.g., with ), . In , there are no walks of length between the central vertex and a leaf vertex. Thus, non-diagonal entries connecting the two partitions in remain . Hence, entries in can be zero. (False)
Option (C): The sum of all elements of equals . If , then . A graph with is not necessarily acyclic if it is disconnected (e.g., a disjoint union of a triangle and an isolated vertex has , but contains a cycle). (False)
Option (D): Having at least a 1 in each row and column simply means that every vertex has degree (no isolated vertices). A disconnected graph such as has at least a 1 in every row and column, but is disconnected. (False)
Therefore, only statement A is true.
Try the question first, then check your work.
Examiner trap
Recall that counts the number of walks of length 2 from vertex to itself, and consider small counterexamples (such as disconnected graphs or bipartite graphs) for the remaining options.
This Graph Theory previous year question is Q52 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Graph Theory in Engineering Mathematics, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Graph Theory PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Graph Theory has 21 GATE CSE PYQs across 14 papers from 2012 to 2026. 4 of them are 2-mark MSQs like this one, and GATE CSE 2022 has 3.
How GATE tests Graph TheoryIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.