Returns the unique id that the given value element corresponds to and which is used as a key to point to the parent element of value in the parent associative array. If the given value element is not part of any disjoint-set, then undefined is returned.
Also, the corresponding TypeScript ambient declarations are included in the PR.
Description
The PR introduces the following new unary method:
DisjointSet#getId(value)
Returns the unique
id
that the givenvalue
element corresponds to and which is used as a key to point to the parent element ofvalue
in theparent
associative array. If the givenvalue
element is not part of any disjoint-set, thenundefined
is returned.Also, the corresponding TypeScript ambient declarations are included in the PR.