What is the primary use of the Depth-First Search (DFS) algorithm in graph theory?
A. To explore all reachable vertices from a given source node.
B. To find the shortest path in a weighted graph.
C. To detect cycles in a graph.
D. To perform level-order traversal.
Answer: Option C

Join The Discussion