Contiguously-allocated disjoint-set data structures for JavaScript. See docs. Parent is js-data-structures.
U.find( a ) === U.find( b ) ; // false U.union( A , B ) ; U.find( a ) === U.find( b ) ; // true@union-find/non-contiguous: Implementation of the same data structures with nodes and pointers instead of arrays.