pub struct SlidingWindowProcessor { /* private fields */ }Expand description
Time-based sliding window for graph evolution analysis Maintains snapshots of graph state over time and provides temporal analytics
Implementations§
Source§impl SlidingWindowProcessor
impl SlidingWindowProcessor
pub fn new(config: TemporalConfig) -> Self
Sourcepub fn initialize(
&mut self,
processor: &IncrementalGraphProcessor,
) -> Result<()>
pub fn initialize( &mut self, processor: &IncrementalGraphProcessor, ) -> Result<()>
Initialize with current graph state
Sourcepub fn update(
&mut self,
processor: &IncrementalGraphProcessor,
_changes: &UpdateResult,
) -> Result<()>
pub fn update( &mut self, processor: &IncrementalGraphProcessor, _changes: &UpdateResult, ) -> Result<()>
Update window with new graph state
Sourcepub fn analyze_temporal_patterns(&self) -> Result<TemporalAnalytics>
pub fn analyze_temporal_patterns(&self) -> Result<TemporalAnalytics>
Perform temporal analysis on the sliding window
Sourcepub fn window_stats(&self) -> WindowStats
pub fn window_stats(&self) -> WindowStats
Get current window statistics
Sourcepub fn recent_snapshots(&self, count: usize) -> Vec<&GraphSnapshot>
pub fn recent_snapshots(&self, count: usize) -> Vec<&GraphSnapshot>
Get recent snapshots
Trait Implementations§
Source§impl Clone for SlidingWindowProcessor
impl Clone for SlidingWindowProcessor
Source§fn clone(&self) -> SlidingWindowProcessor
fn clone(&self) -> SlidingWindowProcessor
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 moreAuto Trait Implementations§
impl Freeze for SlidingWindowProcessor
impl RefUnwindSafe for SlidingWindowProcessor
impl Send for SlidingWindowProcessor
impl Sync for SlidingWindowProcessor
impl Unpin for SlidingWindowProcessor
impl UnsafeUnpin for SlidingWindowProcessor
impl UnwindSafe for SlidingWindowProcessor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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