Skip to main content

downstream_of

Function downstream_of 

Source
pub fn downstream_of(
    model: &Model,
    task: EntityId,
) -> Result<Vec<EntityId>, ScheduleReadError>
Expand description

Every process reachable downstream of task, depth-first.

Excludes the start. Returns Err with the offending path if the graph cycles: a schedule that loops has no valid ordering, and the loop is the answer the caller needs. Every IfcRelSequence is followed, whatever IfcProcess it relates.

ยงErrors

ScheduleReadError::Cycle when a process is reachable from itself, ScheduleReadError::SequenceDepthExceeded when a chain from task is longer than MAX_SEQUENCE_DEPTH, and the binding refusals of sequences.