...

/

Challenge: Print all the Connected Components in a Graph

Challenge: Print all the Connected Components in a Graph

Given an undirected graph, find all connected components in a graph.

Problem statement

Implement a function that takes an undirected graph and prints all the connected components of the graph.

Input

The input is an undirected ...