Topic: Graph Theory Problem / Level: advanced

Problem: Write a program to find the number of edges in a directed graph that form a path.

Run the code to see the output here...