components function

Find the Number of (Maximal) Components Within a Given Graph