Question

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

Choose every correct option
Official answer and solution
Official answer
A
From
Official GATE 2022 answer key

Solution

Analyze matrix multiplication properties of the graph adjacency matrix.

Let AA be the adjacency matrix of a simple undirected unweighted graph with nn vertices:

  • (A) TRUE: The (i,i)(i, i)-th entry of A2A^2 is:
    (A2)ii=∑k=1nAikAki(A^2)_{ii} = \sum_{k=1}^n A_{ik} A_{ki}
    Since the graph is undirected, Aki=AikA_{ki} = A_{ik}. Since Aik∈{0,1}A_{ik} \in \{0, 1\}, Aik2=AikA_{ik}^2 = A_{ik}. Thus:
    (A2)ii=∑k=1nAik=deg(vi)(A^2)_{ii} = \sum_{k=1}^n A_{ik} = \text{deg}(v_i)
    The diagonal entries of A2A^2 are precisely the degrees of the vertices.
  • (B) FALSE: (An−1+I)ij=(An−1)ij+Iij(A^{n-1} + I)_{ij} = (A^{n-1})_{ij} + I_{ij}. If the graph is bipartite, walks between vertices in the same part have even length, so (An−1)ij=0(A^{n-1})_{ij} = 0 when n−1n-1 is odd, and Iij=0I_{ij} = 0 for i≠ji \ne j. Thus some off-diagonal entries can be zero even in a connected graph.
  • (C) FALSE: The sum of elements of AA is 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 disconnected graph on nn vertices can have ∣E∣≤n−1|E| \le n-1 and still contain a cycle (e.g., a triangle C3C_3 plus isolated vertices).
  • (D) FALSE: Having at least one 1 in each row and column only means that every vertex has degree ≥1\ge 1 (no isolated vertices), but the graph can consist of two or more disjoint components (such as two disjoint triangles).

Hence, only Property (A) holds.

Final answer

Option (A)

Common trap

Assuming ∣E∣≤n−1|E| \le n-1 guarantees that the graph is a forest without considering disconnected graphs.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2022 Computer Science and Information Technology (CS)
Question
52 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.