Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to print all vertices in a directed acyclic graph sorted by in-degree and out-degree.

Run the code to see the output here...