Loading repovive.com/problems/classics/12
Given an undirected graph with vertices and edges, find the number of connected components.
A connected component is a maximal set of vertices such that there is a path between every pair of vertices in the set.