Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to calculate the total number of vertices in a directed acyclic graph.

Run the code to see the output here...