GATE CS 2022 | Question 37
Discrete Mathematics › Graph Theory · MCQ · 2 marks · Answer: D
- Question 37Discrete Mathematicsmcq2 marksFor a simple undirected unweighted graph with adjacency matrix , the number of 3-cycles (triangles) equals the trace of
- A.
- B.divided by 2
- C.divided by 3
- D.divided by 6✓
Answer: D
Solution
Answer: (D) divided by 6 counts closed walks of length 3 from vertex , i.e. (triangles through ). Summing over , counts each triangle times (3 starting vertices 2 directions). So the number of triangles - A.
More GATE PYQ on Graph Theory
All GATE CS Discrete Mathematics PYQ →Attempt GATE CS 2022 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →