klaudiosinani / dsforest

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

Add new `DisjointSet#areConnected(x, y)` class method (#3) #9

Closed klaudiosinani closed 5 years ago

klaudiosinani commented 5 years ago

Description

The PR introduces the following new binary predicate method:

Determines whether the two given elements x and y belong to the same disjoint set, returning true or false as appropriate.

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