pub struct AllShortestPaths {
pub vertices: Vec<Vec<VertexId>>,
pub edges: Vec<Vec<EdgeId>>,
pub nrgeo: Vec<i64>,
}Expand description
All the shortest paths from one source, as returned by
Graph::get_all_shortest_paths.
Fields§
§vertices: Vec<Vec<VertexId>>Vertex lists of all the shortest paths, grouped by target in increasing target id order. Unreachable targets contribute no path.
edges: Vec<Vec<EdgeId>>Edge lists of the same paths, in the same order.
nrgeo: Vec<i64>Number of shortest paths from the source to each vertex (indexed by vertex id). Only accurate for the requested targets.
Trait Implementations§
Source§impl Clone for AllShortestPaths
impl Clone for AllShortestPaths
Source§fn clone(&self) -> AllShortestPaths
fn clone(&self) -> AllShortestPaths
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 moreSource§impl Debug for AllShortestPaths
impl Debug for AllShortestPaths
Source§impl Default for AllShortestPaths
impl Default for AllShortestPaths
Source§fn default() -> AllShortestPaths
fn default() -> AllShortestPaths
Returns the “default value” for a type. Read more
impl Eq for AllShortestPaths
Source§impl PartialEq for AllShortestPaths
impl PartialEq for AllShortestPaths
Source§fn eq(&self, other: &AllShortestPaths) -> bool
fn eq(&self, other: &AllShortestPaths) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllShortestPaths
Auto Trait Implementations§
impl Freeze for AllShortestPaths
impl RefUnwindSafe for AllShortestPaths
impl Send for AllShortestPaths
impl Sync for AllShortestPaths
impl Unpin for AllShortestPaths
impl UnsafeUnpin for AllShortestPaths
impl UnwindSafe for AllShortestPaths
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