klaudiosinani / dsforest

Disjoint-set forests for ES6
MIT License
16 stars 0 forks source link

Add new `DisjointSet#isEmpty()` predicate class method (#3) #10

Closed klaudiosinani closed 5 years ago

klaudiosinani commented 5 years ago

Description

The PR introduces the following new nullary predicate method:

Determines whether the foreset contains any elements, thus any disjoint sets, returning true or false as appropriate.

Also, the corresponding TypeScript ambient declarations are included in the PR.