pub struct IsoMapping {
pub map12: Vec<VertexId>,
pub map21: Vec<VertexId>,
}Expand description
An isomorphism (or subgraph isomorphism) between two graphs, as a pair of mutually inverse vertex maps.
For a full isomorphism both vectors are permutations. For a subgraph
isomorphism of graph2 into graph1, map21[v] is the vertex of
graph1 matched to vertex v of graph2, while map12[u] is the vertex
of graph2 matched to u, or -1 if u is not part of the match.
Fields§
§map12: Vec<VertexId>Maps each vertex of the first graph to a vertex of the second one.
map21: Vec<VertexId>Maps each vertex of the second graph to a vertex of the first one.
Trait Implementations§
Source§impl Clone for IsoMapping
impl Clone for IsoMapping
Source§fn clone(&self) -> IsoMapping
fn clone(&self) -> IsoMapping
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 IsoMapping
impl Debug for IsoMapping
impl Eq for IsoMapping
Source§impl PartialEq for IsoMapping
impl PartialEq for IsoMapping
Source§fn eq(&self, other: &IsoMapping) -> bool
fn eq(&self, other: &IsoMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IsoMapping
Auto Trait Implementations§
impl Freeze for IsoMapping
impl RefUnwindSafe for IsoMapping
impl Send for IsoMapping
impl Sync for IsoMapping
impl Unpin for IsoMapping
impl UnsafeUnpin for IsoMapping
impl UnwindSafe for IsoMapping
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