pub struct GraphChangeDetector { /* private fields */ }Expand description
Graph change detection algorithms for anomaly detection and community drift These algorithms monitor graph evolution and detect significant structural changes
Implementations§
Source§impl GraphChangeDetector
impl GraphChangeDetector
pub fn new(max_history: usize, change_sensitivity: f64) -> Self
Sourcepub fn initialize(
&mut self,
processor: &IncrementalGraphProcessor,
) -> Result<()>
pub fn initialize( &mut self, processor: &IncrementalGraphProcessor, ) -> Result<()>
Initialize the detector with current graph state
Sourcepub fn update(
&mut self,
processor: &IncrementalGraphProcessor,
changes: &UpdateResult,
) -> Result<Vec<AnomalyEvent>>
pub fn update( &mut self, processor: &IncrementalGraphProcessor, changes: &UpdateResult, ) -> Result<Vec<AnomalyEvent>>
Update detector with new graph changes
Sourcepub fn recent_anomalies(&self, count: usize) -> Vec<&AnomalyEvent>
pub fn recent_anomalies(&self, count: usize) -> Vec<&AnomalyEvent>
Get recent anomalies
Sourcepub fn significant_changes(&self) -> &[GraphChange]
pub fn significant_changes(&self) -> &[GraphChange]
Get significant changes
Sourcepub fn is_anomalous_state(&self) -> bool
pub fn is_anomalous_state(&self) -> bool
Check if the graph is in an anomalous state
Sourcepub fn current_community_stability(&self) -> Option<f64>
pub fn current_community_stability(&self) -> Option<f64>
Get current community stability
Trait Implementations§
Source§impl Clone for GraphChangeDetector
impl Clone for GraphChangeDetector
Source§fn clone(&self) -> GraphChangeDetector
fn clone(&self) -> GraphChangeDetector
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 GraphChangeDetector
impl RefUnwindSafe for GraphChangeDetector
impl Send for GraphChangeDetector
impl Sync for GraphChangeDetector
impl Unpin for GraphChangeDetector
impl UnsafeUnpin for GraphChangeDetector
impl UnwindSafe for GraphChangeDetector
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