StaticvalidateValidates that all step IDs are unique.
Array of workflow steps
Result with void or ParseError for duplicates
Builds the reverse dependency links (dependents).
Gets all step IDs in the graph.
Gets a node by step ID.
Validates that all dependency references exist.
Result with void or ParseError containing missing references
Detects circular dependencies using Kahn's algorithm.
Result with topologically sorted step IDs or ParseError for cycles
Gets the execution order (topologically sorted step IDs).
Result with sorted step IDs or ParseError
Dependency graph for workflow steps.