pub struct PathFromGraph<'graph, G, GH> { /* private fields */ }Implementations§
source§impl<'graph, G: GraphViewOps<'graph>> PathFromGraph<'graph, G, G>
impl<'graph, G: GraphViewOps<'graph>> PathFromGraph<'graph, G, G>
source§impl<'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>> PathFromGraph<'graph, G, GH>
impl<'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>> PathFromGraph<'graph, G, GH>
pub fn iter( &self, ) -> impl Iterator<Item = PathFromNode<'graph, G, GH>> + Send + 'graph
pub fn iter_refs( &self, ) -> impl Iterator<Item = BoxedLIter<'graph, VID>> + Send + 'graph
pub fn total_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_all_empty(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn type_filter( &self, node_types: &[impl AsRef<str>], ) -> PathFromGraph<'graph, G, GH>
pub fn collect(&self) -> Vec<Vec<NodeView<G, GH>>>
Trait Implementations§
source§impl<'graph, G: Clone, GH: Clone> Clone for PathFromGraph<'graph, G, GH>
impl<'graph, G: Clone, GH: Clone> Clone for PathFromGraph<'graph, G, GH>
source§fn clone(&self) -> PathFromGraph<'graph, G, GH>
fn clone(&self) -> PathFromGraph<'graph, G, GH>
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<'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>> IntoIterator for PathFromGraph<'graph, G, GH>
impl<'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>> IntoIterator for PathFromGraph<'graph, G, GH>
source§type Item = PathFromNode<'graph, G, GH>
type Item = PathFromNode<'graph, G, GH>
The type of the elements being iterated over.
source§type IntoIter = Box<dyn Iterator<Item = <PathFromGraph<'graph, G, GH> as IntoIterator>::Item> + Send + 'graph>
type IntoIter = Box<dyn Iterator<Item = <PathFromGraph<'graph, G, GH> as IntoIterator>::Item> + Send + 'graph>
Which kind of iterator are we turning this into?
source§impl<'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>> OneHopFilter<'graph> for PathFromGraph<'graph, G, GH>
impl<'graph, G: GraphViewOps<'graph>, GH: GraphViewOps<'graph>> OneHopFilter<'graph> for PathFromGraph<'graph, G, GH>
type BaseGraph = G
type FilteredGraph = GH
type Filtered<GHH: GraphViewOps<'graph>> = PathFromGraph<'graph, G, GHH>
fn current_filter(&self) -> &Self::FilteredGraph
fn base_graph(&self) -> &Self::BaseGraph
fn one_hop_filtered<GHH: GraphViewOps<'graph>>( &self, filtered_graph: GHH, ) -> Self::Filtered<GHH>
Auto Trait Implementations§
impl<'graph, G, GH> Freeze for PathFromGraph<'graph, G, GH>
impl<'graph, G, GH> !RefUnwindSafe for PathFromGraph<'graph, G, GH>
impl<'graph, G, GH> Send for PathFromGraph<'graph, G, GH>
impl<'graph, G, GH> Sync for PathFromGraph<'graph, G, GH>
impl<'graph, G, GH> Unpin for PathFromGraph<'graph, G, GH>
impl<'graph, G, GH> !UnwindSafe for PathFromGraph<'graph, G, GH>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 moresource§impl<'graph, V> LayerOps<'graph> for Vwhere
V: OneHopFilter<'graph> + 'graph,
impl<'graph, V> LayerOps<'graph> for Vwhere
V: OneHopFilter<'graph> + 'graph,
type LayeredViewType = <V as OneHopFilter<'graph>>::Filtered<LayeredGraph<<V as OneHopFilter<'graph>>::FilteredGraph>>
source§fn default_layer(&self) -> <V as LayerOps<'graph>>::LayeredViewType
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>
fn layers<L>( &self, layers: L, ) -> Result<<V as LayerOps<'graph>>::LayeredViewType, GraphError>
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>
fn exclude_layers<L>( &self, layers: L, ) -> Result<<V as LayerOps<'graph>>::LayeredViewType, GraphError>
Return a graph containing the excluded layers in
names. Errors if one or more of the layers do not exists.fn exclude_valid_layers<L>( &self, layers: L, ) -> <V as LayerOps<'graph>>::LayeredViewType
source§fn valid_layers<L>(&self, names: L) -> <V as LayerOps<'graph>>::LayeredViewType
fn valid_layers<L>(&self, names: L) -> <V as LayerOps<'graph>>::LayeredViewType
Return a graph containing the layers in
names. Any layers that do not exist are ignored.source§impl<'graph, V> NodeViewOps<'graph> for Vwhere
V: BaseNodeViewOps<'graph> + 'graph,
impl<'graph, V> NodeViewOps<'graph> for Vwhere
V: BaseNodeViewOps<'graph> + 'graph,
type BaseGraph = <V as BaseNodeViewOps<'graph>>::BaseGraph
type Graph = <V as BaseNodeViewOps<'graph>>::Graph
type ValueType<T: 'graph> = <V as BaseNodeViewOps<'graph>>::ValueType<T>
type PathType = <V as BaseNodeViewOps<'graph>>::PathType
type PropType = <V as BaseNodeViewOps<'graph>>::PropType
type Edges = <V as BaseNodeViewOps<'graph>>::Edges
source§fn name(&self) -> <V as NodeViewOps<'graph>>::ValueType<String>
fn name(&self) -> <V as NodeViewOps<'graph>>::ValueType<String>
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<Option<ArcStr>>
fn node_type(&self) -> <V as NodeViewOps<'graph>>::ValueType<Option<ArcStr>>
Returns the type of node
fn node_type_id(&self) -> <V as NodeViewOps<'graph>>::ValueType<usize>
source§fn earliest_time(&self) -> <V as NodeViewOps<'graph>>::ValueType<Option<i64>>
fn earliest_time(&self) -> <V as NodeViewOps<'graph>>::ValueType<Option<i64>>
Get the timestamp for the earliest activity of the node
fn earliest_date_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Option<DateTime<Utc>>>
source§fn latest_time(&self) -> <V as NodeViewOps<'graph>>::ValueType<Option<i64>>
fn latest_time(&self) -> <V as NodeViewOps<'graph>>::ValueType<Option<i64>>
Get the timestamp for the latest activity of the node
fn latest_date_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Option<DateTime<Utc>>>
source§fn history(&self) -> <V as NodeViewOps<'graph>>::ValueType<Vec<i64>>
fn history(&self) -> <V as NodeViewOps<'graph>>::ValueType<Vec<i64>>
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<Option<Vec<DateTime<Utc>>>>
fn history_date_time( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<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 parseablesource§fn properties(
&self,
) -> <V as NodeViewOps<'graph>>::ValueType<Properties<<V as NodeViewOps<'graph>>::PropType>>
fn properties( &self, ) -> <V as NodeViewOps<'graph>>::ValueType<Properties<<V as NodeViewOps<'graph>>::PropType>>
Get a view of the temporal properties of this node. Read more
source§fn degree(&self) -> <V as NodeViewOps<'graph>>::ValueType<usize>
fn degree(&self) -> <V as NodeViewOps<'graph>>::ValueType<usize>
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<usize>
fn in_degree(&self) -> <V as NodeViewOps<'graph>>::ValueType<usize>
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<usize>
fn out_degree(&self) -> <V as NodeViewOps<'graph>>::ValueType<usize>
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
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
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
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
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
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
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
impl<T> Pointable for T
source§impl<'graph, V> ResetFilter<'graph> for Vwhere
V: BaseNodeViewOps<'graph> + OneHopFilter<'graph>,
impl<'graph, V> ResetFilter<'graph> for Vwhere
V: BaseNodeViewOps<'graph> + OneHopFilter<'graph>,
fn reset_filter(&self) -> Self::Filtered<Self::BaseGraph>
source§impl<'graph, V> TimeOps<'graph> for Vwhere
V: OneHopFilter<'graph> + 'graph,
impl<'graph, V> TimeOps<'graph> for Vwhere
V: OneHopFilter<'graph> + 'graph,
type WindowedViewType = <V as InternalTimeOps<'graph>>::InternalWindowedViewType
source§fn start(&self) -> Option<i64>
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>
fn end(&self) -> Option<i64>
Return the timestamp of the of the view or None if the view end is unbounded.
fn start_date_time(&self) -> Option<DateTime<Utc>>
fn end_date_time(&self) -> Option<DateTime<Utc>>
source§fn shrink_start<T: IntoTime>(&self, start: T) -> Self::WindowedViewType
fn shrink_start<T: IntoTime>(&self, start: T) -> Self::WindowedViewType
set the start of the window to the larger of
start and self.start()source§fn shrink_end<T: IntoTime>(&self, end: T) -> Self::WindowedViewType
fn shrink_end<T: IntoTime>(&self, end: T) -> Self::WindowedViewType
set the end of the window to the smaller of
end and self.end()source§fn shrink_window<T: IntoTime>(&self, start: T, end: T) -> Self::WindowedViewType
fn shrink_window<T: IntoTime>(&self, start: T, end: T) -> Self::WindowedViewType
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>
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: IntoTime, T2: IntoTime>(
&self,
start: T1,
end: T2,
) -> Self::WindowedViewType
fn window<T1: IntoTime, T2: IntoTime>( &self, start: T1, end: T2, ) -> Self::WindowedViewType
Create a view including all events between
start (inclusive) and end (exclusive)source§fn at<T: IntoTime>(&self, time: T) -> Self::WindowedViewType
fn at<T: IntoTime>(&self, time: T) -> Self::WindowedViewType
Create a view that only includes events at
timesource§fn after<T: IntoTime>(&self, start: T) -> Self::WindowedViewType
fn after<T: IntoTime>(&self, start: T) -> Self::WindowedViewType
Create a view that only includes events after
start (exclusive)source§fn before<T: IntoTime>(&self, end: T) -> Self::WindowedViewType
fn before<T: IntoTime>(&self, end: T) -> Self::WindowedViewType
Create a view that only includes events before
end (exclusive)source§fn expanding<I>(
&self,
step: I,
) -> Result<WindowSet<'graph, Self>, ParseTimeError>
fn expanding<I>( &self, step: I, ) -> Result<WindowSet<'graph, Self>, 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