Skip to content

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

Flow

Returns

string[]

Licensed under BUSL-1.1