checking in a connected components example for debugging tomorrow (if needed)