Remove unnecessary N^2\n complexity. Disjoint set will join all elements in list, even without fully-related joins. Usually cost is small (10%~ for this specific function), but some certain files might be 10000x slower. But that is very corner case. Pull Request: https://projects.blender.org/blender/blender/pulls/115245