pub struct BiconnectedComponents<Node, Edge> { /* private fields */ }Expand description
Deterministic vertex-biconnected edge blocks and their cut vertices.
Implementations§
Source§impl<Node, Edge> BiconnectedComponents<Node, Edge>
impl<Node, Edge> BiconnectedComponents<Node, Edge>
Sourcepub fn components(&self) -> &[Vec<Edge>]
pub fn components(&self) -> &[Vec<Edge>]
Returns canonical edge blocks, ordered by their smallest edge index.
Sourcepub fn component_count(&self) -> usize
pub fn component_count(&self) -> usize
Returns the number of edge blocks.
Sourcepub fn articulation_points(&self) -> &[Node]
pub fn articulation_points(&self) -> &[Node]
Returns cut vertices in canonical node-index order.
Sourcepub fn into_components(self) -> Vec<Vec<Edge>>
pub fn into_components(self) -> Vec<Vec<Edge>>
Consumes the result and returns its canonical edge blocks.
Trait Implementations§
Source§impl<Node: Clone, Edge: Clone> Clone for BiconnectedComponents<Node, Edge>
impl<Node: Clone, Edge: Clone> Clone for BiconnectedComponents<Node, Edge>
Source§fn clone(&self) -> BiconnectedComponents<Node, Edge>
fn clone(&self) -> BiconnectedComponents<Node, Edge>
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 moreimpl<Node: Eq, Edge: Eq> Eq for BiconnectedComponents<Node, Edge>
impl<Node: PartialEq, Edge: PartialEq> StructuralPartialEq for BiconnectedComponents<Node, Edge>
Auto Trait Implementations§
impl<Node, Edge> Freeze for BiconnectedComponents<Node, Edge>
impl<Node, Edge> RefUnwindSafe for BiconnectedComponents<Node, Edge>where
Node: RefUnwindSafe,
Edge: RefUnwindSafe,
impl<Node, Edge> Send for BiconnectedComponents<Node, Edge>
impl<Node, Edge> Sync for BiconnectedComponents<Node, Edge>
impl<Node, Edge> Unpin for BiconnectedComponents<Node, Edge>
impl<Node, Edge> UnsafeUnpin for BiconnectedComponents<Node, Edge>
impl<Node, Edge> UnwindSafe for BiconnectedComponents<Node, Edge>where
Node: UnwindSafe,
Edge: UnwindSafe,
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