Connected components is working fine;