pub struct SubgraphFromEdgesResult {
pub graph: Graph,
pub vertex_map: Vec<u32>,
pub vertex_invmap: Vec<VertexId>,
pub edge_map: Vec<u32>,
}Expand description
Result of a subgraph-from-edges extraction.
Fields§
§graph: GraphThe resulting subgraph.
vertex_map: Vec<u32>Mapping from old vertex IDs to new vertex IDs. Contains u32::MAX
for vertices not in the subgraph (only meaningful when
delete_vertices was true).
vertex_invmap: Vec<VertexId>Mapping from new vertex IDs to old vertex IDs.
edge_map: Vec<u32>Mapping from new edge indices (positions in the result) to old edge IDs.
Trait Implementations§
Source§impl Clone for SubgraphFromEdgesResult
impl Clone for SubgraphFromEdgesResult
Source§fn clone(&self) -> SubgraphFromEdgesResult
fn clone(&self) -> SubgraphFromEdgesResult
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 SubgraphFromEdgesResult
impl !RefUnwindSafe for SubgraphFromEdgesResult
impl Send for SubgraphFromEdgesResult
impl !Sync for SubgraphFromEdgesResult
impl Unpin for SubgraphFromEdgesResult
impl UnsafeUnpin for SubgraphFromEdgesResult
impl UnwindSafe for SubgraphFromEdgesResult
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