Topic: Graph Theory Problem / Level: intermediate

Problem: Implement an algorithm to check if a directed graph has a cycle using Kahns algorithm.

Run the code to see the output here...