I\'m trying to build a C program (that is, I don\'t have the facilities of the C ++ STL library) that prints the connected components in a non-direct graph. For example,