UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

10 lines 417 B
/** * Topologically sorts a directed graph, returning the sorted nodes. * Handles cycles by breaking them where needed. * * @param nodes All nodes in the graph * @param getEdges Function that returns outgoing edges for a node * @returns Topologically sorted list of nodes */ export declare function topologicalSort<T>(nodes: T[], getEdges: (node: T) => T[]): T[]; //# sourceMappingURL=topological-sort.d.ts.map