pub struct TemporalGraph { /* private fields */ }Expand description
Temporal graph
Implementations§
Source§impl TemporalGraph
impl TemporalGraph
Sourcepub fn add_edge(&mut self, edge: TemporalEdge)
pub fn add_edge(&mut self, edge: TemporalEdge)
Add temporal edge
Sourcepub fn snapshot_at(&self, timestamp: i64) -> Snapshot
pub fn snapshot_at(&self, timestamp: i64) -> Snapshot
Get snapshot at specific timestamp
Sourcepub fn snapshot_range(&self, start: i64, end: i64) -> Snapshot
pub fn snapshot_range(&self, start: i64, end: i64) -> Snapshot
Get snapshot for time range
Sourcepub fn timestamps(&self) -> Vec<i64>
pub fn timestamps(&self) -> Vec<i64>
Get all timestamps (discrete time points)
Sourcepub fn time_range(&self) -> Option<(i64, i64)>
pub fn time_range(&self) -> Option<(i64, i64)>
Get time range
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Get edge count
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get node count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemporalGraph
impl RefUnwindSafe for TemporalGraph
impl Send for TemporalGraph
impl Sync for TemporalGraph
impl Unpin for TemporalGraph
impl UnsafeUnpin for TemporalGraph
impl UnwindSafe for TemporalGraph
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 more