These lines in Connected Components are only used for logging and the computation of the count can be rather expensive: ``` val numEdges = ee.count() logInfo(s"$logPrefix Found $numEdges edges after preparation.") ```