6 ms·This is wrong headed. Just add everything one by one to a Disjoint set union. My bad.by throwaway43 10y agoThis is wrong headed. Just add everything one by one to a Disjoint set union. My bad.