Graph Theory · Discrete Mathematics
86 questions · asked in 25 of 27 years (2000–2026)
MCQ 59 · MSQ 9 · NAT 181-mark 55 · 2-mark 31
2000Questions per year2026
Questions 11–15 of 86
Consider a simple undirected unweighted graph with at least three vertices. If is the adjacency matrix of the graph, then the number of 3-cycles in the graph is given by the trace of
Answer: (D)
counts the closed walks of length 3 that start at vertex i. These are the triangles through i, and each is counted twice (once per direction).
In the trace, a triangle shows up at each of its 3 vertices 2 directions, so 6 times.
Number of triangles
Answer: divided by 6
In the trace, a triangle shows up at each of its 3 vertices 2 directions, so 6 times.
Number of triangles
Answer: divided by 6
The following simple undirected graph is referred to as the Peterson graph.
Which of the following statements is/are TRUE?
Which of the following statements is/are TRUE?
One or more options are correct.
Answer: (A), (B), (C)
Name the outer 5-cycle (clockwise from the top) and the inner points , with joined to and each joined to . Every vertex has degree 3 and there are 15 edges.
(A) True. The outer 5-cycle is an odd cycle, so at least 3 colours are needed. Three are enough: give colour 1, colour 2 and colour 3. No edge joins two vertices of the same colour. So the chromatic number is 3.
(B) True. The path uses only edges of the graph and visits all 10 vertices once. So a Hamiltonian path exists. (A Hamiltonian cycle does not exist, but the option asks only for a path.)
(C) True. The second graph has 10 vertices, every vertex has degree 3, and it has no triangle and no 4-cycle (checked from its edges: the outer 9-cycle with three chords and a centre joined to three outer vertices). A 3-regular graph on 10 vertices with no cycle shorter than 5 is the Petersen graph, since it is the only such graph. So the two graphs are isomorphic.
(D) False. is an independent set of size 4, so the largest one is not 3. It cannot be 5 either: five pairwise non-adjacent vertices would send out all 15 edges (3 each) to the other five vertices, so those five would have no edges among themselves, the graph would be bipartite, and that contradicts the 5-cycle. So the largest independent set has size 4.
Answer: (A), (B), (C)
(A) True. The outer 5-cycle is an odd cycle, so at least 3 colours are needed. Three are enough: give colour 1, colour 2 and colour 3. No edge joins two vertices of the same colour. So the chromatic number is 3.
(B) True. The path uses only edges of the graph and visits all 10 vertices once. So a Hamiltonian path exists. (A Hamiltonian cycle does not exist, but the option asks only for a path.)
(C) True. The second graph has 10 vertices, every vertex has degree 3, and it has no triangle and no 4-cycle (checked from its edges: the outer 9-cycle with three chords and a centre joined to three outer vertices). A 3-regular graph on 10 vertices with no cycle shorter than 5 is the Petersen graph, since it is the only such graph. So the two graphs are isomorphic.
(D) False. is an independent set of size 4, so the largest one is not 3. It cannot be 5 either: five pairwise non-adjacent vertices would send out all 15 edges (3 each) to the other five vertices, so those five would have no edges among themselves, the graph would be bipartite, and that contradicts the 5-cycle. So the largest independent set has size 4.
Answer: (A), (B), (C)
Which of the properties hold for the adjacency matrix of a simple undirected unweighted graph having vertices?
One or more options are correct.
Answer: (A)
(A) True. , because is symmetric with 0/1 entries. This is the number of neighbours of vertex , that is its degree.
(B) False. Take the path 1-2-3 (, so ). Entry (1, 2) of is 0, because there is no walk of length exactly 2 from 1 to 2 and the identity adds nothing off the diagonal.
(C) False. A sum of entries means at most edges. A triangle plus one isolated vertex (, 3 edges) satisfies this but has a cycle.
(D) False. Two disjoint edges on 4 vertices: every row and column has a 1, but the graph is not connected.
Answer: (A)
(B) False. Take the path 1-2-3 (, so ). Entry (1, 2) of is 0, because there is no walk of length exactly 2 from 1 to 2 and the identity adds nothing off the diagonal.
(C) False. A sum of entries means at most edges. A triangle plus one isolated vertex (, 3 edges) satisfies this but has a cycle.
(D) False. Two disjoint edges on 4 vertices: every row and column has a 1, but the graph is not connected.
Answer: (A)
An articulation point in a connected graph is a vertex such that removing the vertex and its incident edges disconnects the graph into two or more connected components.
Let T be a DFS tree obtained by doing DFS in a connected undirected graph G.
Which of the following options is/are correct?
Let T be a DFS tree obtained by doing DFS in a connected undirected graph G.
Which of the following options is/are correct?
One or more options are correct.
Answer: (B)
(A) False, see (B).
(B) True. An undirected DFS has only tree edges and back edges, with no cross edges. So the subtrees of different children of the root have no edge between them, and they are joined only through the root. If the root has 2 or more children, removing it splits these subtrees apart, so it is an articulation point. If it has only 1 child, all other vertices lie in that child's subtree, which stays connected through its tree edges, so the root is not an articulation point.
(C) False. If a leaf of T is removed, the rest of T is still a tree that connects all the other vertices, so a leaf is never an articulation point.
(D) False. Take edges , , , and run DFS from (the tree is and , with a back edge). Here is an articulation point, because removing it cuts off . But the path does not pass through .
Answer: (B)
(B) True. An undirected DFS has only tree edges and back edges, with no cross edges. So the subtrees of different children of the root have no edge between them, and they are joined only through the root. If the root has 2 or more children, removing it splits these subtrees apart, so it is an articulation point. If it has only 1 child, all other vertices lie in that child's subtree, which stays connected through its tree edges, so the root is not an articulation point.
(C) False. If a leaf of T is removed, the rest of T is still a tree that connects all the other vertices, so a leaf is never an articulation point.
(D) False. Take edges , , , and run DFS from (the tree is and , with a back edge). Here is an articulation point, because removing it cuts off . But the path does not pass through .
Answer: (B)
Consider the following directed graph:
Which of the following is/are correct about the graph?
Which of the following is/are correct about the graph?
One or more options are correct.
Answer: (A), (B)
Call the rows 1 to 4 from the top. Reading the arrows, the graph has three directed 4-cycles:
- the top-middle square (rows 1 and 2, columns 2 and 3),
- the bottom-left square through S (rows 3 and 4, columns 1 and 2),
- the bottom-right square (rows 3 and 4, columns 3 and 4).
Each of these is a strongly connected component (SCC) and has exactly 4 edges, no others. The remaining 4 vertices (top-left corner, the vertex below it, and the two on the right edge of rows 1 and 2) are single-vertex SCCs. No edge goes back from one cycle to an earlier one, so these are all the SCCs.
(A) True. The graph has cycles, so it has no topological order.
(B) True. S reaches every vertex, so one DFS from S visits all of them. A back edge joins a vertex to its ancestor, so it lies on a cycle, and it can only be inside an SCC. DFS enters each 4-cycle at one vertex and walks round it along 3 tree edges. The 4th edge returns to the entry vertex, so it is a back edge. That gives 1 back edge per cycle, 3 in all.
(C) False. Every graph has SCCs, at least the single vertices.
(D) False. The top-right corner has no outgoing edge, so it cannot reach any other vertex.
Answer: (A), (B)
- the top-middle square (rows 1 and 2, columns 2 and 3),
- the bottom-left square through S (rows 3 and 4, columns 1 and 2),
- the bottom-right square (rows 3 and 4, columns 3 and 4).
Each of these is a strongly connected component (SCC) and has exactly 4 edges, no others. The remaining 4 vertices (top-left corner, the vertex below it, and the two on the right edge of rows 1 and 2) are single-vertex SCCs. No edge goes back from one cycle to an earlier one, so these are all the SCCs.
(A) True. The graph has cycles, so it has no topological order.
(B) True. S reaches every vertex, so one DFS from S visits all of them. A back edge joins a vertex to its ancestor, so it lies on a cycle, and it can only be inside an SCC. DFS enters each 4-cycle at one vertex and walks round it along 3 tree edges. The 4th edge returns to the entry vertex, so it is a back edge. That gives 1 back edge per cycle, 3 in all.
(C) False. Every graph has SCCs, at least the single vertices.
(D) False. The top-right corner has no outgoing edge, so it cannot reach any other vertex.
Answer: (A), (B)
Keep practising