Skip to content
Official PYQ · 2024

GATE CS 2024 Set 2 Q7 — Graphs: Connectivity, Matching, Colouring

Explain with AI

​​​​Let A\text{A} be the adjacency matrix of a simple undirected graph G\text{G}. Suppose A\text{A} is its own inverse. Which one of the following statements is always TRUE?

Choose one option
View worked solution

Answer: B

We are given that AA is the adjacency matrix of a simple undirected graph GG, and AA is its own inverse, which means:

A2=IA^2 = I

Let us analyze the elements of the matrix A2A^2:

  1. Diagonal Elements: The diagonal entry (A2)ii(A^2)_{ii} represents the number of walks of length 22 starting and ending at vertex ii. For a simple undirected graph, this is equal to the degree of vertex ii: (A2)ii=deg(i)(A^2)_{ii} = \text{deg}(i) Since A2=IA^2 = I, we must have (A2)ii=1(A^2)_{ii} = 1 for all vertices ii. Therefore: deg(i)=1for all i\text{deg}(i) = 1 \quad \text{for all } i
  2. Off-Diagonal Elements: The off-diagonal entry (A2)ij(A^2)_{ij} (where i≠ji \neq j) represents the number of walks of length 22 between distinct vertices ii and jj. Since A2=IA^2 = I, we have: (A2)ij=0for all i≠j(A^2)_{ij} = 0 \quad \text{for all } i \neq j This confirms that no two distinct vertices share a common neighbor.

Since every vertex in GG has a degree of exactly 11, the graph GG must be a 1-regular graph. A 1-regular graph consists of a set of disjoint edges covering all vertices, which is the definition of a perfect matching.

Option Elimination:

  • A is incorrect: In a cycle, every vertex has a degree of 22, so (A2)ii=2≠1(A^2)_{ii} = 2 \neq 1.
  • C is incorrect: In a complete graph KnK_n (for n>2n > 2), the degree of each vertex is n−1≠1n-1 \neq 1.
  • D is incorrect: Any graph consisting of disjoint K2K_2 components (e.g., a single edge K2K_2) satisfies the given condition.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions