- pointers updated for edges of connected components