Function rustc_data_structures::graph::is_cyclic
source · pub fn is_cyclic<G>(graph: &G) -> boolwhere
G: ?Sized + DirectedGraph + WithStartNode + WithSuccessors + WithNumNodes,
Expand description
Returns true
if the graph has a cycle that is reachable from the start node.