PersistentAI API Documentation / @persistentai/fireflow-types / detectDisconnectedComponents
Function: detectDisconnectedComponents()
detectDisconnectedComponents(
forward,reverse):Set<string>[]
Defined in: packages/fireflow-types/src/flow/execution/planner/graph-analysis.ts:486
Detect weakly connected components in the graph. If there are 2+ components, they can run in parallel (no shared dependencies).
Parameters
forward
Map<string, string[]>
reverse
Map<string, string[]>
Returns
Set<string>[]