Expand description
DAG Traversal Algorithms for Trajectory Structure
Trajectories are DAGs (Directed Acyclic Graphs) where:
- Each node is an episode (unit of experience)
- Edges represent parent→child relationships
- Multiple children = regenerations or branching
This module provides high-performance algorithms for:
- Path finding (root to leaf traversal)
- Branch detection (identifying decision points)
- Primary path selection (choosing the “best” linear path through the DAG)
Structs§
- Branch
Info - Information about a branch point in the DAG.
- Edge
- Edge in the trajectory DAG.
- Episode
- An episode in the trajectory DAG.
- Path
Result - Result of finding a path through the DAG.
- Trajectory
Graph - Trajectory DAG structure optimized for traversal operations.
Enums§
- Edge
Type - Type of edge in the DAG.
- Path
Selection Policy - Policy for selecting which child to follow at branch points.
- Traversal
Order - Traversal order for DAG walking.
Type Aliases§
- NodeId
- Unique identifier for a node in the trajectory DAG.