Connected components finally works really well. Yataa.