pub struct ProjectionBuilder<'a> { /* private fields */ }Expand description
Builder for creating graph projections with fluent API
Implementations§
Source§impl<'a> ProjectionBuilder<'a>
impl<'a> ProjectionBuilder<'a>
Sourcepub fn new(graph: &'a GraphStore) -> ProjectionBuilder<'a>
pub fn new(graph: &'a GraphStore) -> ProjectionBuilder<'a>
Create a new projection builder
Sourcepub fn with_node_labels<I, S>(self, labels: I) -> ProjectionBuilder<'a>
pub fn with_node_labels<I, S>(self, labels: I) -> ProjectionBuilder<'a>
Filter nodes by category label (string form).
Sourcepub fn with_node_ids(self, ids: HashSet<String>) -> ProjectionBuilder<'a>
pub fn with_node_ids(self, ids: HashSet<String>) -> ProjectionBuilder<'a>
Filter nodes by IDs
Sourcepub fn with_edge_types<I, S>(self, types: I) -> ProjectionBuilder<'a>
pub fn with_edge_types<I, S>(self, types: I) -> ProjectionBuilder<'a>
Filter edges by category label (string form).
Sourcepub fn with_min_weight(self, weight: f32) -> ProjectionBuilder<'a>
pub fn with_min_weight(self, weight: f32) -> ProjectionBuilder<'a>
Filter edges by minimum weight
Sourcepub fn with_max_weight(self, weight: f32) -> ProjectionBuilder<'a>
pub fn with_max_weight(self, weight: f32) -> ProjectionBuilder<'a>
Filter edges by maximum weight
Sourcepub fn aggregate(self, strategy: AggregationStrategy) -> ProjectionBuilder<'a>
pub fn aggregate(self, strategy: AggregationStrategy) -> ProjectionBuilder<'a>
Set edge aggregation strategy
Sourcepub fn undirected(self) -> ProjectionBuilder<'a>
pub fn undirected(self) -> ProjectionBuilder<'a>
Make the projection undirected
Sourcepub fn build(self) -> GraphProjection
pub fn build(self) -> GraphProjection
Build the projection
Auto Trait Implementations§
impl<'a> Freeze for ProjectionBuilder<'a>
impl<'a> RefUnwindSafe for ProjectionBuilder<'a>
impl<'a> Send for ProjectionBuilder<'a>
impl<'a> Sync for ProjectionBuilder<'a>
impl<'a> Unpin for ProjectionBuilder<'a>
impl<'a> UnsafeUnpin for ProjectionBuilder<'a>
impl<'a> UnwindSafe for ProjectionBuilder<'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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request