pub struct TemporalPath<N: Node, E: EdgeWeight> {
pub nodes: Vec<N>,
pub edges: Vec<TemporalEdge<N, E>>,
pub total_weight: Option<E>,
pub start_time: TimeInstant,
pub end_time: TimeInstant,
}
Expand description
Represents a path in a temporal graph
Fields§
§nodes: Vec<N>
Nodes in the path
edges: Vec<TemporalEdge<N, E>>
Edges in the path
total_weight: Option<E>
Total weight of the path
start_time: TimeInstant
Start time of the path
end_time: TimeInstant
End time of the path
Implementations§
Trait Implementations§
Source§impl<N: Clone + Node, E: Clone + EdgeWeight> Clone for TemporalPath<N, E>
impl<N: Clone + Node, E: Clone + EdgeWeight> Clone for TemporalPath<N, E>
Source§fn clone(&self) -> TemporalPath<N, E>
fn clone(&self) -> TemporalPath<N, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<N, E> Freeze for TemporalPath<N, E>where
E: Freeze,
impl<N, E> RefUnwindSafe for TemporalPath<N, E>where
E: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, E> Send for TemporalPath<N, E>
impl<N, E> Sync for TemporalPath<N, E>
impl<N, E> Unpin for TemporalPath<N, E>
impl<N, E> UnwindSafe for TemporalPath<N, E>where
E: UnwindSafe,
N: UnwindSafe,
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