pub struct PathFromGraph<G: GraphViewOps> {
pub graph: G,
pub operations: Arc<Vec<Operations>>,
}Fields§
§graph: G§operations: Arc<Vec<Operations>>Implementations§
source§impl<G: GraphViewOps> PathFromGraph<G>
impl<G: GraphViewOps> PathFromGraph<G>
pub fn new(graph: G, operation: Operations) -> PathFromGraph<G>
pub fn iter(&self) -> Box<dyn Iterator<Item = PathFromVertex<G>> + Send>
Trait Implementations§
source§impl<G: Clone + GraphViewOps> Clone for PathFromGraph<G>
impl<G: Clone + GraphViewOps> Clone for PathFromGraph<G>
source§fn clone(&self) -> PathFromGraph<G>
fn clone(&self) -> PathFromGraph<G>
Returns a copy 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 moresource§impl<G: GraphViewOps> LayerOps for PathFromGraph<G>
impl<G: GraphViewOps> LayerOps for PathFromGraph<G>
type LayeredViewType = PathFromGraph<LayeredGraph<G>>
source§fn default_layer(&self) -> Self::LayeredViewType
fn default_layer(&self) -> Self::LayeredViewType
Return a graph containing only the default edge layer
source§impl<G: GraphViewOps> TimeOps for PathFromGraph<G>
impl<G: GraphViewOps> TimeOps for PathFromGraph<G>
type WindowedViewType = PathFromGraph<WindowedGraph<G>>
source§fn start(&self) -> Option<i64>
fn start(&self) -> Option<i64>
Return the timestamp of the default start for perspectives of the view (if any).
source§fn end(&self) -> Option<i64>
fn end(&self) -> Option<i64>
Return the timestamp of the default for perspectives of the view (if any).
source§fn window<T: IntoTime>(&self, t_start: T, t_end: T) -> Self::WindowedViewType
fn window<T: IntoTime>(&self, t_start: T, t_end: T) -> Self::WindowedViewType
Create a view including all events between
t_start (inclusive) and t_end (exclusive)source§fn window_size(&self) -> Option<u64>
fn window_size(&self) -> Option<u64>
Return the size of the window covered by this view
source§fn at<T: IntoTime>(&self, end: T) -> Self::WindowedViewType
fn at<T: IntoTime>(&self, end: T) -> Self::WindowedViewType
Create a view including all events until
end (inclusive)source§fn expanding<I>(&self, step: I) -> Result<WindowSet<Self>, ParseTimeError>where
Self: Sized + Clone + 'static,
I: TryInto<Interval, Error = ParseTimeError>,
fn expanding<I>(&self, step: I) -> Result<WindowSet<Self>, ParseTimeError>where Self: Sized + Clone + 'static, I: TryInto<Interval, Error = ParseTimeError>,
Creates a
using an expanding window. The last window may fall partially outside the range of the data/view. Read more
WindowSet with the given step sizeusing an expanding window. The last window may fall partially outside the range of the data/view. Read more
source§fn rolling<I>(
&self,
window: I,
step: Option<I>
) -> Result<WindowSet<Self>, ParseTimeError>where
Self: Sized + Clone + 'static,
I: TryInto<Interval, Error = ParseTimeError>,
fn rolling<I>( &self, window: I, step: Option<I> ) -> Result<WindowSet<Self>, ParseTimeError>where Self: Sized + Clone + 'static, I: TryInto<Interval, Error = ParseTimeError>,
Creates a
WindowSet with the given window size and optional step
using a rolling window. The last window may fall partially outside the range of the data/view. Read moresource§impl<G: GraphViewOps> VertexViewOps for PathFromGraph<G>
impl<G: GraphViewOps> VertexViewOps for PathFromGraph<G>
type Graph = G
type ValueType<T> = Box<dyn Iterator<Item = Box<dyn Iterator<Item = T> + Send, Global>> + Send, Global>
type PathType<'a> = PathFromGraph<G> where Self: 'a
type EList = Box<dyn Iterator<Item = Box<dyn Iterator<Item = EdgeView<G>> + Send, Global>> + Send, Global>
source§fn id(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = u64> + Send>> + Send>
fn id( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = u64> + Send>> + Send>
Get the numeric id of the vertex
source§fn name(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = String> + Send>> + Send>
fn name( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = String> + Send>> + Send>
Get the name of this vertex if a user has set one otherwise it returns the ID. Read more
source§fn earliest_time(&self) -> Self::ValueType<Option<i64>>
fn earliest_time(&self) -> Self::ValueType<Option<i64>>
Get the timestamp for the earliest activity of the vertex
source§fn latest_time(&self) -> Self::ValueType<Option<i64>>
fn latest_time(&self) -> Self::ValueType<Option<i64>>
Get the timestamp for the latest activity of the vertex
source§fn history(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = Vec<i64>> + Send>> + Send>
fn history( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = Vec<i64>> + Send>> + Send>
Gets the history of the vertex (time that the vertex was added and times when changes were made to the vertex)
source§fn properties(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = Properties<VertexView<G>>> + Send>> + Send>
fn properties( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = Properties<VertexView<G>>> + Send>> + Send>
Get a view of the temporal properties of this vertex. Read more
source§fn degree(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = usize> + Send>> + Send>
fn degree( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = usize> + Send>> + Send>
Get the degree of this vertex (i.e., the number of edges that are incident to it). Read more
source§fn in_degree(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = usize> + Send>> + Send>
fn in_degree( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = usize> + Send>> + Send>
Get the in-degree of this vertex (i.e., the number of edges that point into it). Read more
source§fn out_degree(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = usize> + Send>> + Send>
fn out_degree( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = usize> + Send>> + Send>
Get the out-degree of this vertex (i.e., the number of edges that point out of it). Read more
source§fn edges(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = EdgeView<G>> + Send>> + Send>
fn edges( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = EdgeView<G>> + Send>> + Send>
Get the edges that are incident to this vertex. Read more
source§fn in_edges(
&self
) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = EdgeView<G>> + Send>> + Send>
fn in_edges( &self ) -> Box<dyn Iterator<Item = Box<dyn Iterator<Item = EdgeView<G>> + Send>> + Send>
Get the edges that point into this vertex. Read more
source§fn out_edges(&self) -> BoxedIter<BoxedIter<EdgeView<G>>>
fn out_edges(&self) -> BoxedIter<BoxedIter<EdgeView<G>>>
Get the edges that point out of this vertex. Read more
source§fn neighbours(&self) -> Self
fn neighbours(&self) -> Self
Get the neighbours of this vertex. Read more
source§fn in_neighbours(&self) -> Self
fn in_neighbours(&self) -> Self
Get the neighbours of this vertex that point into this vertex. Read more
source§fn out_neighbours(&self) -> Self
fn out_neighbours(&self) -> Self
Get the neighbours of this vertex that point out of this vertex. Read more
Auto Trait Implementations§
impl<G> RefUnwindSafe for PathFromGraph<G>where G: RefUnwindSafe,
impl<G> Send for PathFromGraph<G>
impl<G> Sync for PathFromGraph<G>
impl<G> Unpin for PathFromGraph<G>where G: Unpin,
impl<G> UnwindSafe for PathFromGraph<G>where G: 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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.