Consider the following directed graph:

Which of the following is/are correct about the graph?
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, ), 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 :
- Start at , move to , then to . From , the edge points back to the active ancestor , which is the first back edge.
- Backtrack to , then move to , and then to . From , the edge points back to the active ancestor , which is the second back edge.
- From , move to , and then to . From , the edge points back to the active ancestor , which is the third back edge.
- Option C (Incorrect): Every directed graph has at least one strongly connected component (SCC). Here, the SCCs are , , and .
- Option D (Incorrect): The graph is not strongly connected. For instance, there is no directed path from to .
Free practice · Your answers on this page are not saved.
