Let be a directed graph where is the set of vertices and the set of edges. Then which one of the following graphs has the same strongly connected components as ?
View worked solution
Answer: B
A strongly connected component (SCC) of a directed graph is a maximal subgraph where for every pair of vertices , there is a path from to and a path from to .
Let us analyze the options:
- Option B (): This is the transpose graph , where every edge is not used, and instead every edge is reversed to . If there is a path from to in , there is a path from to in . Thus, mutual reachability is perfectly preserved, meaning and have the exact same SCCs.
- Option A: The complement graph completely alters the reachability structure.
- Option C: Adding edges for paths of length can merge distinct SCCs. For example, in , and are in different SCCs, but adding can change the reachability.
- Option D: Removing isolated vertices changes the vertex set , thereby losing the isolated vertices which are themselves SCCs of size 1.
Therefore, the correct option is B.
Free practice · Your answers on this page are not saved.
