Skip to main content

has_cycle

Function has_cycle 

Source
pub fn has_cycle<N, E>(g: &DiGraph<N, E>) -> bool
where N: Clone,
Expand description

Check if a graph contains any cycles.

Uses petgraph’s is_cyclic_directed algorithm.