PersistentAI API Documentation / @persistentai/fireflow-types / topologicalSort
Function: topologicalSort()
topologicalSort(
forward):string[]
Defined in: packages/fireflow-types/src/flow/execution/planner/graph-analysis.ts:448
Topological sort using Kahn's algorithm.
Parameters
forward
Map<string, string[]>
Returns
string[]