pub fn would_create_cycle(existing: &[PipeSpec], from: u32, to: u32) -> bool
Would adding edge from -> to create a directed cycle among existing pipes? Detects the self-loop from == to and any to ->* from path.
from -> to
existing
from == to
to ->* from