Question
Which of the properties hold for the adjacency matrix A of a simple undirected unweighted graph having n vertices?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2022 answer key
Solution
Analyze matrix multiplication properties of the graph adjacency matrix.
Let be the adjacency matrix of a simple undirected unweighted graph with vertices:
- (A) TRUE: The -th entry of is:Since the graph is undirected, . Since , . Thus:The diagonal entries of are precisely the degrees of the vertices.
- (B) FALSE: . If the graph is bipartite, walks between vertices in the same part have even length, so when is odd, and for . Thus some off-diagonal entries can be zero even in a connected graph.
- (C) FALSE: The sum of elements of is . If , then . A disconnected graph on vertices can have and still contain a cycle (e.g., a triangle plus isolated vertices).
- (D) FALSE: Having at least one 1 in each row and column only means that every vertex has degree (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 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.