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>

source

pub fn new(graph: G, operation: Operations) -> PathFromGraph<G>

source

pub fn iter(&self) -> Box<dyn Iterator<Item = PathFromVertex<G>> + Send>

Trait Implementations§

source§

impl<G: Clone + GraphViewOps> Clone for PathFromGraph<G>

source§

fn clone(&self) -> PathFromGraph<G>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<G: GraphViewOps> LayerOps for PathFromGraph<G>

§

type LayeredViewType = PathFromGraph<LayeredGraph<G>>

source§

fn default_layer(&self) -> Self::LayeredViewType

Return a graph containing only the default edge layer
source§

fn layer<L: Into<Layer>>(&self, name: L) -> Option<Self::LayeredViewType>

Return a graph containing the layer name
source§

impl<G: GraphViewOps> TimeOps for PathFromGraph<G>

§

type WindowedViewType = PathFromGraph<WindowedGraph<G>>

source§

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>

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

Create a view including all events between t_start (inclusive) and t_end (exclusive)
source§

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

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>,

Creates a WindowSet with the given step size
using 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>,

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 more
source§

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>

Get the numeric id of the vertex
source§

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>>

Get the timestamp for the earliest activity of the vertex
source§

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>

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>

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>

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>

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>

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>

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>

Get the edges that point into this vertex. Read more
source§

fn out_edges(&self) -> BoxedIter<BoxedIter<EdgeView<G>>>

Get the edges that point out of this vertex. Read more
source§

fn neighbours(&self) -> Self

Get the neighbours of this vertex. Read more
source§

fn in_neighbours(&self) -> Self

Get the neighbours of this vertex that point into this vertex. Read more
source§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere T: Any,

§

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>

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)

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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T, Global>) -> Arc<dyn Any + Sync + Send, Global>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> Fruit for Twhere T: Send + Downcast,