pub struct TemporalWalk {
pub steps: Vec<(usize, f64)>,
}Expand description
A single time-respecting random walk on a temporal graph.
Each step of the walk moves to a random neighbour via an edge whose timestamp is ≥ the timestamp of the edge used at the previous step. This ensures the walk is causal (it only traverses forward in time).
Fields§
§steps: Vec<(usize, f64)>Ordered sequence of (node, edge_timestamp) pairs visited during the walk.
The first entry is the starting node with timestamp -∞ (represented as
f64::NEG_INFINITY).
Implementations§
Trait Implementations§
Source§impl Clone for TemporalWalk
impl Clone for TemporalWalk
Source§fn clone(&self) -> TemporalWalk
fn clone(&self) -> TemporalWalk
Returns a duplicate of the value. Read more
1.0.0 · 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 TemporalWalk
impl RefUnwindSafe for TemporalWalk
impl Send for TemporalWalk
impl Sync for TemporalWalk
impl Unpin for TemporalWalk
impl UnsafeUnpin for TemporalWalk
impl UnwindSafe for TemporalWalk
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