Skip to main content

would_create_cycle

Function would_create_cycle 

Source
pub fn would_create_cycle(existing: &[PipeSpec], from: u32, to: u32) -> bool
Expand description

Would adding edge from -> to create a directed cycle among existing pipes? Detects the self-loop from == to and any to ->* from path.