pub struct DisjointPaths {
pub path_a: Vec<usize>,
pub path_b: Vec<usize>,
pub total_cost: f64,
}Expand description
A pair of vertex-disjoint shortest paths from s to t.
Fields§
§path_a: Vec<usize>The first path as a vertex sequence [s, …, t].
path_b: Vec<usize>The second path as a vertex sequence [s, …, t], vertex-disjoint from path_a
apart from the shared endpoints s and t.
total_cost: f64Combined cost of both paths (sum of all their edge weights).
Trait Implementations§
Source§impl Clone for DisjointPaths
impl Clone for DisjointPaths
Source§fn clone(&self) -> DisjointPaths
fn clone(&self) -> DisjointPaths
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DisjointPaths
impl RefUnwindSafe for DisjointPaths
impl Send for DisjointPaths
impl Sync for DisjointPaths
impl Unpin for DisjointPaths
impl UnsafeUnpin for DisjointPaths
impl UnwindSafe for DisjointPaths
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