Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to calculate the degree of each vertex in a directed graph.

Run the code to see the output here...