/Engine/Source/Runtime/GeometryCore/Public/VertexConnectedComponents.h
Disjoint set with additional storage to track the size of each set.
struct FSizedDisjointSet
TArray< int32 >
Parents
TArray< int32 >
Sizes