pub struct InducedSubgraphResult {
pub graph: Graph,
pub map: Vec<u32>,
pub invmap: Vec<VertexId>,
}Expand description
Result of an induced subgraph extraction.
Fields§
§graph: GraphThe subgraph.
map: Vec<u32>Mapping from old vertex IDs to new vertex IDs. Contains u32::MAX
for vertices not in the subgraph.
invmap: Vec<VertexId>Mapping from new vertex IDs to old vertex IDs (inverse map).
Trait Implementations§
Source§impl Clone for InducedSubgraphResult
impl Clone for InducedSubgraphResult
Source§fn clone(&self) -> InducedSubgraphResult
fn clone(&self) -> InducedSubgraphResult
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 moreAuto Trait Implementations§
impl !Freeze for InducedSubgraphResult
impl !RefUnwindSafe for InducedSubgraphResult
impl Send for InducedSubgraphResult
impl !Sync for InducedSubgraphResult
impl Unpin for InducedSubgraphResult
impl UnsafeUnpin for InducedSubgraphResult
impl UnwindSafe for InducedSubgraphResult
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