Skip to main content

topological_sort

Function topological_sort 

Source
pub fn topological_sort(
    steps: &[DagWorkflowStep],
) -> Result<Vec<String>, Vec<String>>
Expand description

Perform topological sort using Kahn’s algorithm.

Returns Ok(sorted_names) or Err(cycle_participants).