Graph Acyclicity with DFS
Role: MLE
Frequency: Reported
Use depth-first search to determine whether a graph is acyclic, with a follow-up handling cyclic input.
The source did not preserve whether the graph is directed, the input representation, the exact follow-up, or examples.