Struct EvalPathFromNode

Source
pub struct EvalPathFromNode<'graph, 'a: 'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>, CS: ComputeState, S> {
    pub graph: GH,
    /* private fields */
}

Fields§

§graph: GH

Implementations§

Source§

impl<'graph, 'a: 'graph, G: GraphViewOps<'graph>, S, CS: ComputeState + 'a, GH: GraphViewOps<'graph>> EvalPathFromNode<'graph, 'a, G, GH, CS, S>

Source

pub fn iter( &self, ) -> impl Iterator<Item = EvalNodeView<'graph, 'a, G, S, GH, CS>> + 'graph

Source

pub fn type_filter(&self, node_types: &[impl AsRef<str>]) -> Self

Trait Implementations§

Source§

impl<'graph, 'a: 'graph, G: GraphViewOps<'graph>, S, CS: ComputeState + 'a, GH: GraphViewOps<'graph>> Clone for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

Source§

fn clone(&self) -> Self

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<'graph, 'a: 'graph, G: GraphViewOps<'graph>, S, CS: ComputeState + 'a, GH: GraphViewOps<'graph>> IntoIterator for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

Source§

type Item = EvalNodeView<'graph, 'a, G, S, GH, CS>

The type of the elements being iterated over.
Source§

type IntoIter = Box<dyn Iterator<Item = <EvalPathFromNode<'graph, 'a, G, GH, CS, S> as IntoIterator>::Item> + 'graph>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'graph, 'a: 'graph, G: GraphViewOps<'graph>, S, CS: ComputeState + 'a, GH: GraphViewOps<'graph>> OneHopFilter<'graph> for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

Source§

type BaseGraph = &'graph G

Source§

type FilteredGraph = GH

Source§

type Filtered<GHH: GraphViewOps<'graph>> = EvalPathFromNode<'graph, 'a, G, GHH, CS, S>

Source§

fn current_filter(&self) -> &Self::FilteredGraph

Source§

fn base_graph(&self) -> &Self::BaseGraph

Source§

fn one_hop_filtered<GHH: GraphViewOps<'graph>>( &self, filtered_graph: GHH, ) -> Self::Filtered<GHH>

Auto Trait Implementations§

§

impl<'graph, 'a, G, GH, CS, S> Freeze for EvalPathFromNode<'graph, 'a, G, GH, CS, S>
where GH: Freeze,

§

impl<'graph, 'a, G, GH, CS, S> !RefUnwindSafe for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

§

impl<'graph, 'a, G, GH, CS, S> !Send for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

§

impl<'graph, 'a, G, GH, CS, S> !Sync for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

§

impl<'graph, 'a, G, GH, CS, S> Unpin for EvalPathFromNode<'graph, 'a, G, GH, CS, S>
where GH: Unpin,

§

impl<'graph, 'a, G, GH, CS, S> !UnwindSafe for EvalPathFromNode<'graph, 'a, G, GH, CS, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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.

Source§

impl<T> IntoDynHop for T
where T: OneHopFilter<'static>, <T as OneHopFilter<'static>>::FilteredGraph: IntoDynamic + Clone,

Source§

impl<T> IntoEither for T

Source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<'graph, V> LayerOps<'graph> for V
where V: OneHopFilter<'graph> + 'graph,

Source§

type LayeredViewType = <V as OneHopFilter<'graph>>::Filtered<LayeredGraph<<V as OneHopFilter<'graph>>::FilteredGraph>>

Source§

fn default_layer(&self) -> <V as LayerOps<'graph>>::LayeredViewType

Return a graph containing only the default edge layer
Source§

fn layers<L>( &self, layers: L, ) -> Result<<V as LayerOps<'graph>>::LayeredViewType, GraphError>
where L: Into<Layer>,

Return a graph containing the layers in names. Errors if one or more of the layers do not exists.
Source§

fn exclude_layers<L>( &self, layers: L, ) -> Result<<V as LayerOps<'graph>>::LayeredViewType, GraphError>
where L: Into<Layer>,

Return a graph containing the excluded layers in names. Errors if one or more of the layers do not exists.
Source§

fn exclude_valid_layers<L>( &self, layers: L, ) -> <V as LayerOps<'graph>>::LayeredViewType
where L: Into<Layer>,

Source§

fn has_layer(&self, name: &str) -> bool

Check if name is a valid layer name
Source§

fn valid_layers<L>(&self, names: L) -> <V as LayerOps<'graph>>::LayeredViewType
where L: Into<Layer>,

Return a graph containing the layers in names. Any layers that do not exist are ignored.
Source§

impl<'graph, V> NodeViewOps<'graph> for V
where V: BaseNodeViewOps<'graph> + 'graph,

Source§

type BaseGraph = <V as BaseNodeViewOps<'graph>>::BaseGraph

Source§

type Graph = <V as BaseNodeViewOps<'graph>>::Graph

Source§

type ValueType<T: NodeOp + 'graph> = <V as BaseNodeViewOps<'graph>>::ValueType<T> where <T as NodeOp>::Output: 'graph

Source§

type PathType = <V as BaseNodeViewOps<'graph>>::PathType

Source§

type Edges = <V as BaseNodeViewOps<'graph>>::Edges

Source§

fn id(&self) -> <V as NodeViewOps<'graph>>::ValueType<Id>

Get the numeric id of the node
Source§

fn name(&self) -> <V as NodeViewOps<'graph>>::ValueType<Name>

Get the name of this node if a user has set one otherwise it returns the ID. Read more
Source§

fn node_type(&self) -> <V as NodeViewOps<'graph>>::ValueType<Type>

Returns the type of node
Source§

fn node_type_id(&self) -> <V as NodeViewOps<'graph>>::ValueType<TypeId>

Source§

fn earliest_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<EarliestTime<<V as NodeViewOps<'graph>>::Graph>>

Get the timestamp for the earliest activity of the node
Source§

fn earliest_date_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Map<EarliestTime<<V as NodeViewOps<'graph>>::Graph>, Option<DateTime<Utc>>>>

Source§

fn latest_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<LatestTime<<V as NodeViewOps<'graph>>::Graph>>

Get the timestamp for the latest activity of the node
Source§

fn latest_date_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Map<LatestTime<<V as NodeViewOps<'graph>>::Graph>, Option<DateTime<Utc>>>>

Source§

fn history( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<History<<V as NodeViewOps<'graph>>::Graph>>

Gets the history of the node (time that the node was added and times when changes were made to the node)
Source§

fn history_date_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Map<History<<V as NodeViewOps<'graph>>::Graph>, Option<Vec<DateTime<Utc>>>>>

Gets the history of the node (time that the node was added and times when changes were made to the node) as DateTime<Utc> objects if parseable
Source§

fn is_active( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Map<History<<V as NodeViewOps<'graph>>::Graph>, bool>>

Source§

fn properties( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<GetProperties<<V as NodeViewOps<'graph>>::Graph>>

Get a view of the temporal properties of this node. Read more
Source§

fn degree( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Degree<<V as NodeViewOps<'graph>>::Graph>>

Get the degree of this node (i.e., the number of edges that are incident to it). Read more
Source§

fn in_degree( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Degree<<V as NodeViewOps<'graph>>::Graph>>

Get the in-degree of this node (i.e., the number of edges that point into it). Read more
Source§

fn out_degree( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Degree<<V as NodeViewOps<'graph>>::Graph>>

Get the out-degree of this node (i.e., the number of edges that point out of it). Read more
Source§

fn edges(&self) -> <V as NodeViewOps<'graph>>::Edges

Get the edges that are incident to this node. Read more
Source§

fn in_edges(&self) -> <V as NodeViewOps<'graph>>::Edges

Get the edges that point into this node. Read more
Source§

fn out_edges(&self) -> <V as NodeViewOps<'graph>>::Edges

Get the edges that point out of this node. Read more
Source§

fn neighbours(&self) -> <V as NodeViewOps<'graph>>::PathType

Get the neighbours of this node. Read more
Source§

fn in_neighbours(&self) -> <V as NodeViewOps<'graph>>::PathType

Get the neighbours of this node that point into this node. Read more
Source§

fn out_neighbours(&self) -> <V as NodeViewOps<'graph>>::PathType

Get the neighbours of this node that point out of this node. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<'graph, V> ResetFilter<'graph> for V
where V: BaseNodeViewOps<'graph> + OneHopFilter<'graph>,

Source§

fn reset_filter(&self) -> Self::Filtered<Self::BaseGraph>

Source§

impl<'graph, V> TimeOps<'graph> for V
where V: OneHopFilter<'graph> + 'graph + InternalTimeOps<'graph>,

Source§

type WindowedViewType = <V as InternalTimeOps<'graph>>::InternalWindowedView

Source§

fn start(&self) -> Option<i64>

Return the timestamp of the start of the view or None if the view start is unbounded.
Source§

fn end(&self) -> Option<i64>

Return the timestamp of the view or None if the view end is unbounded.
Source§

fn start_date_time(&self) -> Option<DateTime<Utc>>

Source§

fn end_date_time(&self) -> Option<DateTime<Utc>>

Source§

fn shrink_start<T>(&self, start: T) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

set the start of the window to the larger of start and self.start()
Source§

fn shrink_end<T>(&self, end: T) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

set the end of the window to the smaller of end and self.end()
Source§

fn shrink_window<T>( &self, start: T, end: T, ) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

shrink both the start and end of the window (same as calling shrink_start followed by shrink_end but more efficient)
Source§

fn window_size(&self) -> Option<u64>

Return the size of the window covered by this view or None if the window is unbounded
Source§

fn window<T1, T2>( &self, start: T1, end: T2, ) -> <V as TimeOps<'graph>>::WindowedViewType
where T1: IntoTime, T2: IntoTime,

Create a view including all events between start (inclusive) and end (exclusive)
Source§

fn at<T>(&self, time: T) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

Create a view that only includes events at time
Source§

fn latest(&self) -> <V as TimeOps<'graph>>::WindowedViewType

Create a view that only includes events at the latest time
Source§

fn snapshot_at<T>(&self, time: T) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

Create a view including all events that have not been explicitly deleted at time Read more
Source§

fn snapshot_latest(&self) -> <V as TimeOps<'graph>>::WindowedViewType

Create a view including all events that have not been explicitly deleted at the latest time Read more
Source§

fn after<T>(&self, start: T) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

Create a view that only includes events after start (exclusive)
Source§

fn before<T>(&self, end: T) -> <V as TimeOps<'graph>>::WindowedViewType
where T: IntoTime,

Create a view that only includes events before end (exclusive)
Source§

fn expanding<I>(&self, step: I) -> Result<WindowSet<'graph, V>, ParseTimeError>
where V: 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<'graph, V>, ParseTimeError>
where V: 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<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more