UNPKG

475 BTypeScriptView Raw
1export declare class DisjointSetItem<T> {
2 private value;
3 private parent;
4 private children;
5 constructor(value: T);
6 readonly Value: T;
7 getKey(key?: keyof T): string;
8 getRoot(): DisjointSetItem<T>;
9 isRoot(): boolean;
10 getRank(): number;
11 getChildren(): DisjointSetItem<T>[];
12 setParent(parent: DisjointSetItem<T>, forceSettingParentChild?: boolean): this;
13 addChild(child: DisjointSetItem<T>): this;
14}
15export default DisjointSetItem;