js-fixed-disjoint-set
Fixed-size-array-based disjoint-set data structures for JavaScript. Parent is aureooms/js-data-structures.
U.find( a ) === U.find( b ) ; // false
U.union( A , B ) ;
U.find( a ) === U.find( b ) ; // true
Related
- aureooms/js-disjoint-set: implementation of the same data structures with nodes and pointers instead of arrays