pub struct MultiGraphQueries;
Expand description
Utility functions for common multi-graph operations
Implementations§
Source§impl MultiGraphQueries
impl MultiGraphQueries
Sourcepub fn find_largest_graph(graphs: &[NamedGraph]) -> Option<&NamedGraph>
pub fn find_largest_graph(graphs: &[NamedGraph]) -> Option<&NamedGraph>
Find the largest graph by edge count
Sourcepub fn find_graphs_with_node<'a>(
graphs: &'a [NamedGraph],
node_id: &str,
) -> Vec<&'a NamedGraph>
pub fn find_graphs_with_node<'a>( graphs: &'a [NamedGraph], node_id: &str, ) -> Vec<&'a NamedGraph>
Find graphs containing a specific node
Sourcepub fn get_all_unique_nodes(graphs: &[NamedGraph]) -> Vec<String>
pub fn get_all_unique_nodes(graphs: &[NamedGraph]) -> Vec<String>
Get all unique nodes across multiple graphs
Sourcepub fn find_overlapping_nodes(
graph1: &NamedGraph,
graph2: &NamedGraph,
) -> Vec<String>
pub fn find_overlapping_nodes( graph1: &NamedGraph, graph2: &NamedGraph, ) -> Vec<String>
Find overlapping nodes between graphs
Auto Trait Implementations§
impl Freeze for MultiGraphQueries
impl RefUnwindSafe for MultiGraphQueries
impl Send for MultiGraphQueries
impl Sync for MultiGraphQueries
impl Unpin for MultiGraphQueries
impl UnwindSafe for MultiGraphQueries
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more