pub struct MinPlusMatrix { /* private fields */ }Expand description
Min-plus matrix for shortest paths
Implementations§
Source§impl MinPlusMatrix
impl MinPlusMatrix
Sourcepub fn from_adjacency(adj: Vec<Vec<f64>>) -> Self
pub fn from_adjacency(adj: Vec<Vec<f64>>) -> Self
Create from adjacency weights (+∞ for no edge)
Sourcepub fn all_pairs_shortest_paths(&self) -> Self
pub fn all_pairs_shortest_paths(&self) -> Self
Floyd-Warshall all-pairs shortest paths (min-plus closure)
Trait Implementations§
Source§impl Clone for MinPlusMatrix
impl Clone for MinPlusMatrix
Source§fn clone(&self) -> MinPlusMatrix
fn clone(&self) -> MinPlusMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MinPlusMatrix
impl RefUnwindSafe for MinPlusMatrix
impl Send for MinPlusMatrix
impl Sync for MinPlusMatrix
impl Unpin for MinPlusMatrix
impl UnwindSafe for MinPlusMatrix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more