def get_connected_components():
    # assume nodes labeled 1 to n
    # connected_components = []
    # for i in 1..n
        # if i not yet explored
            # connected_component = bfs (graph, node i)
            # connected_components.append(connected_component)
    # return connected_components

Add pseudo for connected components
Add pseudo for connected components
