Topic: Graph Theory Problem / Level: advanced

Problem: Implement an algorithm to calculate the number of edges in a directed graph that form a cycle.

Run the code to see the output here...