PersistentAI API Documentation / @persistentai/fireflow-types / topologicalSortCluster
Function: topologicalSortCluster()
topologicalSortCluster(
nodeIds,flow):string[]
Defined in: packages/fireflow-types/src/flow/execution/planner/cluster-detector.ts:145
Topological sort of nodes within a cluster using Kahn's algorithm.
Parameters
nodeIds
Set<string>
flow
Returns
string[]