Skip to main content

has_path

Function has_path 

Source
pub fn has_path(graph: &Graph, source: &str, target: &str) -> HasPathResult
Expand description

Returns whether there is a path between source and target in the graph.

Uses BFS from source. Returns false if either node is missing from the graph.