petgraph::algo

Function is_cyclic_undirected

Source
pub fn is_cyclic_undirected<G>(g: G) -> bool
Expand description

[Generic] Return true if the input graph contains a cycle.

Always treats the input graph as if undirected.