pub struct BellmanFordAlgorithm {
pub total_vertices: usize,
pub edges: Vec<Edge>,
}
Expand description
Bellman-Ford Algorithm. Compute shortest paths from a single source vertex to all of the other vertices in a weighted digraph.
Fields§
§total_vertices: usize
Total number of vertices in the graph.
edges: Vec<Edge>
Edges in the graph.
Implementations§
Trait Implementations§
Source§impl Clone for BellmanFordAlgorithm
impl Clone for BellmanFordAlgorithm
Source§fn clone(&self) -> BellmanFordAlgorithm
fn clone(&self) -> BellmanFordAlgorithm
Returns a copy 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 moreSource§impl Debug for BellmanFordAlgorithm
impl Debug for BellmanFordAlgorithm
Source§impl Default for BellmanFordAlgorithm
impl Default for BellmanFordAlgorithm
Auto Trait Implementations§
impl Freeze for BellmanFordAlgorithm
impl RefUnwindSafe for BellmanFordAlgorithm
impl Send for BellmanFordAlgorithm
impl Sync for BellmanFordAlgorithm
impl Unpin for BellmanFordAlgorithm
impl UnwindSafe for BellmanFordAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)