pub struct MatchQuery<'a> { /* private fields */ }Expand description
Builder pattern for configuring subgraph matching queries.
This provides a fluent API for setting options and collecting results.
Implementations§
Source§impl<'a> MatchQuery<'a>
impl<'a> MatchQuery<'a>
Sourcepub fn new(pattern: &'a Graph, target: &'a Graph) -> Self
pub fn new(pattern: &'a Graph, target: &'a Graph) -> Self
Create a new match query with default options.
Sourcepub fn with_options(self, opts: VF3Options) -> Self
pub fn with_options(self, opts: VF3Options) -> Self
Configure the matching options.
Sourcepub fn node_induced(self) -> Self
pub fn node_induced(self) -> Self
Set node-induced matching (default).
Sourcepub fn edge_induced(self) -> Self
pub fn edge_induced(self) -> Self
Set edge-induced matching.
Sourcepub fn undirected(self) -> Self
pub fn undirected(self) -> Self
Treat graphs as undirected.
Sourcepub fn with_node_labels(self) -> Self
pub fn with_node_labels(self) -> Self
Enable node label checking.
Sourcepub fn with_edge_labels(self) -> Self
pub fn with_edge_labels(self) -> Self
Enable edge label checking.
Sourcepub fn collect(self) -> Vec<NodeMapping> ⓘ
pub fn collect(self) -> Vec<NodeMapping> ⓘ
Collect all matches (up to the limit if set).
Sourcepub fn first(self) -> Option<NodeMapping>
pub fn first(self) -> Option<NodeMapping>
Find the first match, if any.
Sourcepub fn iter(self) -> LazyDfsIter<'a> ⓘ
pub fn iter(self) -> LazyDfsIter<'a> ⓘ
Create an iterator over all matches.
Auto Trait Implementations§
impl<'a> Freeze for MatchQuery<'a>
impl<'a> RefUnwindSafe for MatchQuery<'a>
impl<'a> Send for MatchQuery<'a>
impl<'a> Sync for MatchQuery<'a>
impl<'a> Unpin for MatchQuery<'a>
impl<'a> UnwindSafe for MatchQuery<'a>
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