GateAI
Graph Theory

GATE CSE 2022 · Q52

MSQ2 marksMedium

Time

Which of the properties hold for the adjacency matrix AA of a simple undirected unweighted graph having nn vertices?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: A) The diagonal entries of A2 are the degrees of the vertices of the graph.

Graph Theory

Let AA be the n×nn \times n adjacency matrix of a simple, undirected, unweighted graph G=(V,E)G = (V, E).

  • Option (A): The (i,i)(i, i)-th entry of A2A^2 is given by:

    (A2)ii=∑k=1nAikAki=∑k=1nAik2(A^2)_{ii} = \sum_{k=1}^n A_{ik} A_{ki} = \sum_{k=1}^n A_{ik}^2

    Since AA is symmetric and entries are 00 or 11, Aik2=AikA_{ik}^2 = A_{ik}. Therefore, (A2)ii=∑k=1nAik=deg(vi)(A^2)_{ii} = \sum_{k=1}^n A_{ik} = \text{deg}(v_i). Hence, the diagonal entries of A2A^2 are indeed the degrees of the vertices. (True)

  • Option (B): For a connected bipartite graph (e.g., K1,2K_{1,2} with n=3n=3), An−1+In=A2+I3A^{n-1} + I_n = A^2 + I_3. In K1,2K_{1,2}, there are no walks of length 22 between the central vertex and a leaf vertex. Thus, non-diagonal entries connecting the two partitions in A2+I3A^2 + I_3 remain 00. Hence, entries in An−1+InA^{n-1} + I_n can be zero. (False)

  • Option (C): The sum of all elements of AA equals 2∣E∣2|E|. If 2∣E∣≤2(n−1)2|E| \le 2(n-1), then ∣E∣≤n−1|E| \le n-1. A graph with ∣E∣≤n−1|E| \le n-1 is not necessarily acyclic if it is disconnected (e.g., a disjoint union of a C3C_3 triangle and an isolated vertex has n=4,∣E∣=3≤4−1n=4, |E|=3 \le 4-1, but contains a cycle). (False)

  • Option (D): Having at least a 1 in each row and column simply means that every vertex has degree ≥1\ge 1 (no isolated vertices). A disconnected graph such as K2∪K2K_2 \cup K_2 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.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Graph Theory in GATE CSE

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 Theory

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q52 · MSQ

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

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.