pub struct KShortestPath {
pub vertices: Vec<VertexId>,
pub edges: Vec<u32>,
pub weight: f64,
}Expand description
Result of k_shortest_paths.
Fields§
§vertices: Vec<VertexId>Vertex sequence of the path (including source and target).
edges: Vec<u32>Edge sequence of the path.
weight: f64Total weight of the path.
Trait Implementations§
Source§impl Clone for KShortestPath
impl Clone for KShortestPath
Source§fn clone(&self) -> KShortestPath
fn clone(&self) -> KShortestPath
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 KShortestPath
impl RefUnwindSafe for KShortestPath
impl Send for KShortestPath
impl Sync for KShortestPath
impl Unpin for KShortestPath
impl UnsafeUnpin for KShortestPath
impl UnwindSafe for KShortestPath
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