Topic: Language Problem / Level: advanced

Problem: Write a program to detect a cycle in a directed graph using depth-first search (DFS).

Run the code to see the output here...