pub struct WidestPaths {
pub widths: Vec<Option<f64>>,
pub parents: Vec<Option<VertexId>>,
pub inbound_edges: Vec<Option<u32>>,
}Expand description
Sidecar outputs from a single-source widest-paths run. Carries
the widths vector plus the parent-pointer SPT (vertex-side and
edge-side). Counterpart of the parents and inbound_edges
outputs of igraph_get_widest_paths. Source itself has
parents[source] == None and inbound_edges[source] == None;
unreachable vertices also have both None. To disambiguate the
source from unreachable targets, consult widths: source has
Some(f64::INFINITY), unreachable has None.
Fields§
§widths: Vec<Option<f64>>widths[v]: Some(f64::INFINITY) for v == source,
Some(w) for reachable, None for unreachable.
parents: Vec<Option<VertexId>>parents[v] is the predecessor of v in the widest-paths
spanning tree. None for source and unreachable.
inbound_edges: Vec<Option<u32>>inbound_edges[v] is the edge id v was reached through.
None for source and unreachable.
Trait Implementations§
Source§impl Clone for WidestPaths
impl Clone for WidestPaths
Source§fn clone(&self) -> WidestPaths
fn clone(&self) -> WidestPaths
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 WidestPaths
impl Debug for WidestPaths
Source§impl PartialEq for WidestPaths
impl PartialEq for WidestPaths
impl StructuralPartialEq for WidestPaths
Auto Trait Implementations§
impl Freeze for WidestPaths
impl RefUnwindSafe for WidestPaths
impl Send for WidestPaths
impl Sync for WidestPaths
impl Unpin for WidestPaths
impl UnsafeUnpin for WidestPaths
impl UnwindSafe for WidestPaths
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