changed connectedCFromVertexSet