rasa/core/training/structures.py
def order_steps(
        story_steps: List[StoryStep]
    ) -> Tuple[deque, Set[Tuple[Text, Text]]]:
        """Topological sort of the steps returning the ids of the steps."""

        checkpoints = StoryGraph._group_by_start_checkpoint(story_steps)
        graph = {s.id: {other.id
                        for end in s.end_checkpoints
                        for other in checkpoints[end.name]}
                 for s in story_steps}
        return StoryGraph.topological_sort(graph)
Topological sort of the steps returning the ids of the steps.
Topological sort of the steps returning the ids of the steps.
Topological sort of the steps returning the ids of the steps .
def order_steps(
        story_steps: List[StoryStep]
    ) -> Tuple[deque, Set[Tuple[Text, Text]]]:
        checkpoints = StoryGraph._group_by_start_checkpoint(story_steps)
        graph = {s.id: {other.id
                        for end in s.end_checkpoints
                        for other in checkpoints[end.name]}
                 for s in story_steps}
        return StoryGraph.topological_sort(graph)
def order_steps ( story_steps : List [ StoryStep ] ) -> Tuple [ deque , Set [ Tuple [ Text , Text ] ] ] : checkpoints = StoryGraph . _group_by_start_checkpoint ( story_steps ) graph = { s . id : { other . id for end in s . end_checkpoints for other in checkpoints [ end . name ] } for s in story_steps } return StoryGraph . topological_sort ( graph )
Topological sort of the steps returning the ids of the steps.
Topological sort of the steps returning the ids of the steps .
"""Topological sort of the steps returning the ids of the steps."""
story_steps
List[StoryStep]