Skip to main content

bellman_ford

Function bellman_ford 

Source
pub fn bellman_ford(
    graph: &HashMap<String, Vec<Edge>>,
    start: &str,
) -> Result<(HashMap<String, f64>, HashMap<String, String>), Error>
Expand description

Bellman-Ford shortest paths with negative cycle detection.