pub struct BiconnectedComponents {
pub count: usize,
pub tree_edges: Vec<Vec<EdgeId>>,
pub component_edges: Vec<Vec<EdgeId>>,
pub components: Vec<Vec<VertexId>>,
pub articulation_points: Vec<VertexId>,
}Expand description
The biconnected components of a graph, see
Graph::biconnected_components.
All the lists are indexed by component id, in 0..count.
Fields§
§count: usizeThe number of biconnected components.
tree_edges: Vec<Vec<EdgeId>>For each component, the edges of one of its spanning trees.
component_edges: Vec<Vec<EdgeId>>For each component, all of its edges. Every non-loop edge of the graph belongs to exactly one component.
components: Vec<Vec<VertexId>>For each component, its vertices. A vertex may belong to several components (exactly when it is an articulation point) and isolated vertices belong to none.
articulation_points: Vec<VertexId>The articulation points (cut vertices) of the graph.
Trait Implementations§
Source§impl Clone for BiconnectedComponents
impl Clone for BiconnectedComponents
Source§fn clone(&self) -> BiconnectedComponents
fn clone(&self) -> BiconnectedComponents
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 BiconnectedComponents
impl Debug for BiconnectedComponents
impl Eq for BiconnectedComponents
Source§impl PartialEq for BiconnectedComponents
impl PartialEq for BiconnectedComponents
Source§fn eq(&self, other: &BiconnectedComponents) -> bool
fn eq(&self, other: &BiconnectedComponents) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BiconnectedComponents
Auto Trait Implementations§
impl Freeze for BiconnectedComponents
impl RefUnwindSafe for BiconnectedComponents
impl Send for BiconnectedComponents
impl Sync for BiconnectedComponents
impl Unpin for BiconnectedComponents
impl UnsafeUnpin for BiconnectedComponents
impl UnwindSafe for BiconnectedComponents
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