Concept
Ricci flow with surgery
Just before a neck pinches, cut along a thin -neck, discard the high-curvature piece, glue in standard caps, and restart the flow. Perelman showed the surgery times don't accumulate, so the process continues for all time. What gets discarded is topologically simple (spherical space forms and pieces), which is how topology is read off from the flow.