Method of Graph coloring added

Count the connected components
_