Skip to content
Official PYQ · 2021

GATE CS 2021 Set 2 Q46 — Minimum Spanning Trees

Explain with AI

Consider the following directed graph:

Which of the following is/are correct about the graph?

Select all correct options
View worked solution

Answer: A;B

To analyze the given directed graph, we identify its cycles and connectivity structure:

  • Option A (Correct): A directed graph has a topological order if and only if it is a Directed Acyclic Graph (DAG). Since this graph contains cycles (for example, S→A→B→SS \to A \to B \to S), it is not a DAG, and therefore does not have a topological order.
  • Option B (Correct): Let us perform a Depth-First Search (DFS) starting at vertex SS:
    1. Start at SS, move to AA, then to BB. From BB, the edge B→SB \to S points back to the active ancestor SS, which is the first back edge.
    2. Backtrack to SS, then move to CC, and then to DD. From DD, the edge D→CD \to C points back to the active ancestor CC, which is the second back edge.
    3. From DD, move to FF, and then to EE. From EE, the edge E→FE \to F points back to the active ancestor FF, which is the third back edge.
    Any DFS traversal starting at SS classifies exactly 33 back edges.
  • Option C (Incorrect): Every directed graph has at least one strongly connected component (SCC). Here, the SCCs are {S,A,B}\{S, A, B\}, {C,D}\{C, D\}, and {E,F}\{E, F\}.
  • Option D (Incorrect): The graph is not strongly connected. For instance, there is no directed path from CC to SS.

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

Published
Report a correction
Keep exploringMore Minimum Spanning Trees questions