pub struct TemporalGraphQueries;Expand description
Utility functions for common temporal graph operations
Implementations§
Source§impl TemporalGraphQueries
impl TemporalGraphQueries
Sourcepub fn edges_in_last_n_days(
processor: &TemporalGraphProcessor,
edges: &[TemporalEdge],
days: i64,
current_time: i64,
) -> DataFusionResult<Vec<TemporalEdge>>
pub fn edges_in_last_n_days( processor: &TemporalGraphProcessor, edges: &[TemporalEdge], days: i64, current_time: i64, ) -> DataFusionResult<Vec<TemporalEdge>>
Standard “edges in last N days” query
Sourcepub fn temporal_shortest_path(
processor: &TemporalGraphProcessor,
edges: &[TemporalEdge],
start: &str,
end: &str,
time_window: &TimeWindow,
) -> DataFusionResult<Option<Vec<TemporalEdge>>>
pub fn temporal_shortest_path( processor: &TemporalGraphProcessor, edges: &[TemporalEdge], start: &str, end: &str, time_window: &TimeWindow, ) -> DataFusionResult<Option<Vec<TemporalEdge>>>
Standard “temporal shortest path” query
Sourcepub fn most_active_nodes_in_period(
processor: &TemporalGraphProcessor,
edges: &[TemporalEdge],
time_window: &TimeWindow,
top_n: usize,
) -> DataFusionResult<Vec<(String, usize)>>
pub fn most_active_nodes_in_period( processor: &TemporalGraphProcessor, edges: &[TemporalEdge], time_window: &TimeWindow, top_n: usize, ) -> DataFusionResult<Vec<(String, usize)>>
Standard “nodes active in period” query
Auto Trait Implementations§
impl Freeze for TemporalGraphQueries
impl RefUnwindSafe for TemporalGraphQueries
impl Send for TemporalGraphQueries
impl Sync for TemporalGraphQueries
impl Unpin for TemporalGraphQueries
impl UnsafeUnpin for TemporalGraphQueries
impl UnwindSafe for TemporalGraphQueries
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