Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to find the number of vertices with degree two in a graph.

Run the code to see the output here...