bellman_ford_single_source

Function bellman_ford_single_source 

Source
pub fn bellman_ford_single_source<T, S>(
    graph: &S,
    source: usize,
    directed: bool,
    returnpredecessors: bool,
) -> SparseResult<(Array1<T>, Option<Array1<isize>>)>
where T: Float + Debug + Copy + 'static, S: SparseArray<T>,
Expand description

Bellman-Ford algorithm for single source shortest paths