Implementation of a straightforward algorithm to detect connected components
Abstraction of the type of graph that is generated by a graph module in order to be more generic