GATE 2021 CS (CS2) – Question 56
For the directed graph shown, which statements hold?

Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (A) There is no topological order; (B) A DFS starting at S classifies three directed edges as back edges
Explanation
The drawing contains three directed cycles in separate strongly connected regions: the lower-left square, central upper square and lower-right square. DFS from S encounters a back edge closing each, giving three back edges. A directed cycle prevents a topological ordering. Strongly connected components do exist, and edges between regions are not all reversible, so the entire graph is not strongly connected. Select A,B.
More Graph Algorithms: Traversals, Minimum Spanning Trees, Shortest Paths questions
- GATE 2021 CS (CS2) Q65
- GATE 2026 CS (CS1) Q41
- GATE 2026 CS (CS1) Q49
- GATE 2026 CS (CS1) Q50
- GATE 2026 CS (CS2) Q37
- GATE 2025 CS (CS1) Q18
All Graph Algorithms: Traversals, Minimum Spanning Trees, Shortest Paths questions →