pub struct InducedSubgraph {
pub graph: Graph,
pub map: Vec<Option<VertexId>>,
pub invmap: Vec<VertexId>,
}Expand description
An induced subgraph together with the correspondence between its
vertices and the vertices of the original graph (see
Graph::induced_subgraph_map).
Fields§
§graph: GraphThe induced subgraph.
map: Vec<Option<VertexId>>map[v] is the id in graph of the original vertex
v, or None if v was not selected. Its length is the vertex
count of the original graph.
invmap: Vec<VertexId>invmap[w] is the original id of vertex w of the subgraph. Its
length is the vertex count of the subgraph.
Trait Implementations§
Source§impl Clone for InducedSubgraph
impl Clone for InducedSubgraph
Source§fn clone(&self) -> InducedSubgraph
fn clone(&self) -> InducedSubgraph
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 InducedSubgraph
impl Debug for InducedSubgraph
Source§impl PartialEq for InducedSubgraph
impl PartialEq for InducedSubgraph
Source§fn eq(&self, other: &InducedSubgraph) -> bool
fn eq(&self, other: &InducedSubgraph) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InducedSubgraph
Auto Trait Implementations§
impl !Sync for InducedSubgraph
impl Freeze for InducedSubgraph
impl RefUnwindSafe for InducedSubgraph
impl Send for InducedSubgraph
impl Unpin for InducedSubgraph
impl UnsafeUnpin for InducedSubgraph
impl UnwindSafe for InducedSubgraph
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