Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to print all vertices that belong to the smallest connected component in a graph.

Run the code to see the output here...