pub struct SpanningTree {
pub edges: Vec<Edge<f64>>,
pub total_weight: f64,
}Expand description
The result of a minimum spanning tree computation.
Fields§
§edges: Vec<Edge<f64>>The edges that form the MST, in the order they were added.
total_weight: f64Sum of all edge weights in the MST.
Trait Implementations§
Source§impl Clone for SpanningTree
impl Clone for SpanningTree
Source§fn clone(&self) -> SpanningTree
fn clone(&self) -> SpanningTree
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 SpanningTree
impl RefUnwindSafe for SpanningTree
impl Send for SpanningTree
impl Sync for SpanningTree
impl Unpin for SpanningTree
impl UnwindSafe for SpanningTree
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