UNPKG
union-find-ts
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
An immutable Union-Find structure.
github.com/tylergannon/union-find-ts
tylergannon/union-find-ts
union-find-ts
/
lib
/
src
/
findGroup.d.ts
4 lines
(3 loc)
•
211 B
TypeScript
View Raw
1
2
3
4
import
{
Maybe
}
from
'purify-ts'
;
import
{
UnionFind
}
from
'./UnionFind'
;
export
declare
const
findPath
: <T>
(
uf
:
UnionFind
<T>,
candidates
: (item: T, uf: UnionFind<T>) => T[],
src
: T,
dest
: T
) =>
Maybe
<T[][]>;