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