pub struct Reachability {
pub membership: Vec<VertexId>,
pub sizes: Vec<usize>,
pub count: usize,
pub reach: Vec<Vec<bool>>,
}Expand description
Reachability information, see Graph::reachability.
Vertices in the same strongly connected component reach exactly the same vertices, so the reachable sets are stored once per component.
Fields§
§membership: Vec<VertexId>membership[v] is the id of the (strongly, for directed graphs with
Out/In modes) connected component of v.
sizes: Vec<usize>sizes[c] is the number of vertices of component c.
count: usizeThe number of components.
reach: Vec<Vec<bool>>reach[c][v] is true when vertex v is reachable from the vertices
of component c (every vertex reaches itself).
Implementations§
Source§impl Reachability
impl Reachability
Trait Implementations§
Source§impl Clone for Reachability
impl Clone for Reachability
Source§fn clone(&self) -> Reachability
fn clone(&self) -> Reachability
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 Reachability
impl Debug for Reachability
impl Eq for Reachability
Source§impl PartialEq for Reachability
impl PartialEq for Reachability
Source§fn eq(&self, other: &Reachability) -> bool
fn eq(&self, other: &Reachability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Reachability
Auto Trait Implementations§
impl Freeze for Reachability
impl RefUnwindSafe for Reachability
impl Send for Reachability
impl Sync for Reachability
impl Unpin for Reachability
impl UnsafeUnpin for Reachability
impl UnwindSafe for Reachability
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