pub struct DijkstraAllPaths {
pub vertex_paths: Vec<Vec<Vec<VertexId>>>,
pub edge_paths: Vec<Vec<Vec<u32>>>,
pub nrgeo: Vec<u64>,
}Expand description
Output of dijkstra_all_shortest_paths.
Fields§
§vertex_paths: Vec<Vec<Vec<VertexId>>>vertex_paths[v] = every shortest source→v path as a vertex
chain (including source and v). Empty for unreachable v;
always [[source]] for v == source.
edge_paths: Vec<Vec<Vec<u32>>>edge_paths[v] mirrors Self::vertex_paths but with edge ids
(length one less than the matching vertex chain). Empty for
unreachable v; [[]] for v == source.
nrgeo: Vec<u64>nrgeo[v] = number of distinct shortest paths from source to
v. Zero for unreachable, one for the source itself.
Trait Implementations§
Source§impl Clone for DijkstraAllPaths
impl Clone for DijkstraAllPaths
Source§fn clone(&self) -> DijkstraAllPaths
fn clone(&self) -> DijkstraAllPaths
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 moreSource§impl Debug for DijkstraAllPaths
impl Debug for DijkstraAllPaths
Source§impl PartialEq for DijkstraAllPaths
impl PartialEq for DijkstraAllPaths
impl StructuralPartialEq for DijkstraAllPaths
Auto Trait Implementations§
impl Freeze for DijkstraAllPaths
impl RefUnwindSafe for DijkstraAllPaths
impl Send for DijkstraAllPaths
impl Sync for DijkstraAllPaths
impl Unpin for DijkstraAllPaths
impl UnsafeUnpin for DijkstraAllPaths
impl UnwindSafe for DijkstraAllPaths
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