1 | declare type NodeId = string;
|
2 | declare type Cycle = NodeId[];
|
3 | export declare type Cycles = Cycle[];
|
4 | export declare type PartitionedCycles = {
|
5 | cyclesStartWithThisNode: Cycle[];
|
6 | cyclesWithThisNode: Cycle[];
|
7 | };
|
8 | export declare function getCycle(ancestors: NodeId[], nodeId: NodeId): Cycle | null;
|
9 | export declare function partitionCycles(nodeId: NodeId, allCyclesTheNodeIsPartOf: Cycle[]): PartitionedCycles;
|
10 | export {};
|