@lumina-study/blocks-graph
Version:
Framework-agnostic Web Component for visualizing Lumina Study block schemas
12 lines • 1.05 kB
TypeScript
declare function computeAllPrerequisites(blockId: string, prerequisites: Map<string, Set<string>>, cache: Map<string, Set<string>>): ReadonlySet<string>;
declare function computeAllPostrequisites(blockId: string, postrequisites: Map<string, Set<string>>, cache: Map<string, Set<string>>): ReadonlySet<string>;
declare function detectCyclesInGraph(_prerequisites: Map<string, Set<string>>, postrequisites: Map<string, Set<string>>, getAllBlocksSet: () => Iterable<string>): string[][] | null;
declare function computeTopologicalOrder(prerequisites: Map<string, Set<string>>, postrequisites: Map<string, Set<string>>, getAllBlocksSet: () => Iterable<string>): string[] | null;
export declare const HorizontalRelationshipsAlgorithms: {
computeAllPrerequisites: typeof computeAllPrerequisites;
computeAllPostrequisites: typeof computeAllPostrequisites;
detectCyclesInGraph: typeof detectCyclesInGraph;
computeTopologicalOrder: typeof computeTopologicalOrder;
};
export {};
//# sourceMappingURL=horizontal-relationships-algorithms.d.ts.map