Refractored component computation.
New labels on edges.