added a connected components to the bfs graph to find all of the non-connected parts of a single, directed graph