Skip to main content

is_simple_path

Function is_simple_path 

Source
pub fn is_simple_path(graph: &Graph, path: &[&str]) -> bool
Expand description

Return True if path is a simple path in the graph (no repeated nodes, all consecutive nodes connected by edges).