Connected components module for graphs

Change-Id: I859b6f6be2820830fe92f56770013bbb2632de57