Skip to main content

WindowedGraph

Struct WindowedGraph 

Source
pub struct WindowedGraph<G> {
    pub graph: G,
    pub start: Option<EventTime>,
    pub end: Option<EventTime>,
}
Expand description

A struct that represents a windowed view of a Graph.

Fields§

§graph: G

The underlying Graph object.

§start: Option<EventTime>

The inclusive start time of the window.

§end: Option<EventTime>

The exclusive end time of the window.

Implementations§

Source§

impl<'graph, G: GraphViewOps<'graph>> WindowedGraph<G>

A windowed graph is a graph that only allows access to nodes and edges within a time window.

This struct is used to represent a graph with a time window. It is constructed by providing a Graph object and a time range that defines the window.

§Examples

use raphtory::db::api::view::*;
use raphtory::prelude::*;

let graph = Graph::new();
graph.add_edge(0, 1, 2, NO_PROPS, None).unwrap();
graph.add_edge(1, 2, 3, NO_PROPS, None).unwrap();
let windowed_graph = graph.window(0, 1);
Source

pub fn new(graph: G, start: Option<EventTime>, end: Option<EventTime>) -> Self

Create a new windowed graph

§Arguments
  • graph - The graph to create the windowed graph from
  • start - The inclusive start time of the window.
  • end - The exclusive end time of the window.

Returns:

A new windowed graph

Trait Implementations§

Source§

impl<'graph, G: GraphViewOps<'graph>> Base for WindowedGraph<G>

Source§

type Base = G

Source§

fn base(&self) -> &Self::Base

Source§

impl<G: Clone> Clone for WindowedGraph<G>

Source§

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

Returns a duplicate 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: Debug> Debug for WindowedGraph<G>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'graph, G: GraphViewOps<'graph>> GraphTimeSemanticsOps for WindowedGraph<G>

Source§

fn node_time_semantics(&self) -> TimeSemantics

Source§

fn edge_time_semantics(&self) -> TimeSemantics

Source§

fn view_start(&self) -> Option<EventTime>

Returns the start of the current view or None if unbounded
Source§

fn view_end(&self) -> Option<EventTime>

Returns the end of the current view or None if unbounded
Source§

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

Returns the timestamp for the earliest activity
Source§

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

Returns the timestamp for the latest activity
Source§

fn earliest_time_window(&self, start: EventTime, end: EventTime) -> Option<i64>

Returns the timestamp for the earliest activity in the window
Source§

fn latest_time_window(&self, start: EventTime, end: EventTime) -> Option<i64>

Returns the timestamp for the latest activity in the window
Source§

fn has_temporal_prop(&self, prop_id: usize) -> bool

Check if graph has temporal property with the given id Read more
Source§

fn temporal_prop_iter( &self, prop_id: usize, ) -> BoxedLDIter<'_, (EventTime, Prop)>

Returns an Iterator of all temporal values of the graph property with the given id Read more
Source§

fn has_temporal_prop_window(&self, prop_id: usize, w: Range<EventTime>) -> bool

Check if graph has temporal property with the given id in the window Read more
Source§

fn temporal_prop_iter_window( &self, prop_id: usize, start: EventTime, end: EventTime, ) -> BoxedLDIter<'_, (EventTime, Prop)>

Returns all temporal values of the graph property with the given name that fall within the specified time window. Read more
Source§

fn temporal_prop_last_at( &self, prop_id: usize, t: EventTime, ) -> Option<(EventTime, Prop)>

Returns the value and update time for the temporal graph property at or before a given timestamp
Source§

fn temporal_prop_last_at_window( &self, prop_id: usize, t: EventTime, w: Range<EventTime>, ) -> Option<(EventTime, Prop)>

Source§

impl<G: GraphView> InternalEdgeFilterOps for WindowedGraph<G>

Source§

fn internal_edge_filtered(&self) -> bool

If true, the edges from the underlying storage are filtered
Source§

fn internal_edge_list_trusted(&self) -> bool

If true, all edges returned by self.edge_list() exist, otherwise it needs further filtering
Source§

fn internal_filter_edge( &self, edge: EdgeStorageRef<'_>, layer_ids: &LayerIds, ) -> bool

Source§

fn node_filter_includes_edge_filter(&self) -> bool

Source§

fn exploded_edge_filter_includes_edge_filter(&self) -> bool

Set this to true if the exploded filter already implements the edge filter to avoid unnecessary checks
Source§

fn edge_layer_filter_includes_edge_filter(&self) -> bool

Set this to true if the edge layer filter already implements the edge filter to avoid unnecessary checks
Source§

impl<G: GraphView> InternalEdgeLayerFilterOps for WindowedGraph<G>

Source§

fn internal_edge_layer_filtered(&self) -> bool

Set to true when filtering, used for optimisations
Source§

fn internal_layer_filter_edge_list_trusted(&self) -> bool

If true, all edges removed by this filter have also been removed from the edge list
Source§

fn internal_filter_edge_layer( &self, edge: EdgeStorageRef<'_>, layer: usize, ) -> bool

Filter a layer for an edge
Source§

fn node_filter_includes_edge_layer_filter(&self) -> bool

Source§

fn edge_filter_includes_edge_layer_filter(&self) -> bool

Source§

fn exploded_edge_filter_includes_edge_layer_filter(&self) -> bool

Source§

impl<G: GraphView> InternalExplodedEdgeFilterOps for WindowedGraph<G>

Source§

fn internal_exploded_edge_filtered(&self) -> bool

Set to true when filtering, used for optimisations
Source§

fn internal_exploded_filter_edge_list_trusted(&self) -> bool

If true, all edges removed by this filter have also been removed from the edge list
Source§

fn internal_filter_exploded_edge( &self, eid: ELID, t: EventTime, layer_ids: &LayerIds, ) -> bool

Source§

fn node_filter_includes_exploded_edge_filter(&self) -> bool

Source§

fn edge_filter_includes_exploded_edge_filter(&self) -> bool

Source§

fn edge_layer_filter_includes_exploded_edge_filter(&self) -> bool

Source§

impl<'graph, G: GraphViewOps<'graph>> InternalNodeFilterOps for WindowedGraph<G>

Source§

fn internal_nodes_filtered(&self) -> bool

Check if GraphView filters nodes (i.e., there exists nodes in the underlying graph for which filter_node returns false
Source§

fn internal_node_list_trusted(&self) -> bool

Check if node list can be trusted. (if false, nodes in self.node_list need further filtering, if true, the result of self.node_list can be trusted, in particular, its len is the number of nodes in the graph).
Source§

fn edge_filter_includes_node_filter(&self) -> bool

If true, do not need to check src and dst of the edge separately, even if nodes are filtered (i.e., edge filter already makes sure there are no edges between non-existent nodes) This should be false when implementing NodeFilterOps without overriding the edge filter.
Source§

fn edge_layer_filter_includes_node_filter(&self) -> bool

If true, do not need to check src and dst of the edge separately, even if nodes are filtered (i.e., edge filter already makes sure there are no edges between non-existent nodes) This should be false when implementing NodeFilterOps without overriding the edge layer filter.
Source§

fn exploded_edge_filter_includes_node_filter(&self) -> bool

If true, do not need to check src and dst of the edge separately, even if nodes are filtered (i.e., edge filter already makes sure there are no edges between non-existent nodes) This should be false when implementing NodeFilterOps without overriding the exploded edge filter.
Source§

fn internal_filter_node( &self, node: NodeStorageRef<'_>, layer_ids: &LayerIds, ) -> bool

If true, node is included in the graph
Source§

impl<'graph, G: GraphViewOps<'graph>> InternalTemporalPropertiesOps for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> InternalTemporalPropertyViewOps for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> ListOps for WindowedGraph<G>

Source§

impl<'graph1, 'graph2, G1: GraphViewOps<'graph1>, G2: GraphViewOps<'graph2>> PartialEq<G2> for WindowedGraph<G1>

Source§

fn eq(&self, other: &G2) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<G: Copy> Copy for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> Immutable for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> InheritCoreGraphOps for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> InheritLayerOps for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> InheritMaterialize for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> InheritMetadataPropertiesOps for WindowedGraph<G>

Source§

impl<'graph, G: GraphViewOps<'graph>> InheritStorageOps for WindowedGraph<G>

Source§

impl<G> Static for WindowedGraph<G>

Auto Trait Implementations§

§

impl<G> Freeze for WindowedGraph<G>
where G: Freeze,

§

impl<G> RefUnwindSafe for WindowedGraph<G>
where G: RefUnwindSafe,

§

impl<G> Send for WindowedGraph<G>
where G: Send,

§

impl<G> Sync for WindowedGraph<G>
where G: Sync,

§

impl<G> Unpin for WindowedGraph<G>
where G: Unpin,

§

impl<G> UnsafeUnpin for WindowedGraph<G>
where G: UnsafeUnpin,

§

impl<G> UnwindSafe for WindowedGraph<G>
where G: UnwindSafe,

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, dest: *mut u8)

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

impl<G> CoreGraphOps for G

Source§

fn core_graph(&self) -> &GraphStorage

Source§

fn id_type(&self) -> Option<GidType>

Source§

fn num_shards(&self) -> usize

Source§

fn read_event_id(&self) -> usize

get the current sequence id without incrementing the counter
Source§

fn unfiltered_num_nodes(&self) -> usize

get the number of nodes in the main graph
Source§

fn unfiltered_num_edges(&self) -> usize

get the number of edges in the main graph
Source§

fn unfiltered_num_layers(&self) -> usize

get the number of layers in the main graph
Source§

fn single_layer(&self, layer_ids: &LayerIds) -> Option<usize>

Return the id of the single layer if layer_ids reduces to a graph with a single layer, else None
Source§

fn core_edges(&self) -> EdgesStorage

Source§

fn core_edge(&self, eid: EID) -> EdgeStorageEntry<'_>

Source§

fn core_nodes(&self) -> NodesStorage

Source§

fn core_node(&self, vid: VID) -> NodeStorageEntry<'_>

Source§

fn node_meta(&self) -> &Meta

Source§

fn edge_meta(&self) -> &Meta

Source§

fn graph_meta(&self) -> &GraphMeta

Source§

fn get_layer_name(&self, layer_id: usize) -> ArcStr

Source§

fn get_layer_id(&self, name: &str) -> Option<usize>

Source§

fn get_default_layer_id(&self) -> Option<usize>

Source§

fn get_layer_names_from_ids( &self, layer_ids: &LayerIds, ) -> Box<dyn Iterator<Item = ArcStr> + Send + Sync>

Get the layer name for a given id
Source§

fn get_all_node_types(&self) -> Vec<ArcStr>

Get all node types
Source§

fn node_id(&self, v: VID) -> GID

Returns the external ID for a node
Source§

fn node_name(&self, v: VID) -> String

Returns the string name for a node
Source§

fn node_type(&self, v: VID) -> Option<ArcStr>

Returns the type of node
Source§

fn node_type_id(&self, v: VID) -> usize

Returns the type id of a node
Source§

fn internalise_node(&self, v: NodeRef<'_>) -> Option<VID>

Gets the internal reference for an external node reference and keeps internal references unchanged.
Source§

fn internalise_node_unchecked(&self, v: NodeRef<'_>) -> VID

Gets the internal reference for an external node reference and keeps internal references unchanged. Assumes node exists!
Source§

fn node_metadata(&self, v: VID, id: usize) -> Option<Prop>

Gets a static property of a given node given the name and node reference. Read more
Source§

fn node_metadata_ids( &self, v: VID, ) -> Box<dyn Iterator<Item = usize> + Send + Sync + '_>

Gets the keys of metadata of a given node Read more
Source§

fn temporal_node_prop_ids(&self, v: VID) -> Box<dyn Iterator<Item = usize> + '_>

Returns a vector of all ids of temporal properties within the given node Read more
Source§

impl<'graph, T> Filter<'graph> for T
where T: InternalFilter<'graph>,

Source§

fn filter<F: CreateFilter>( &self, filter: F, ) -> Result<Self::Filtered<F::EntityFiltered<'graph, F::FilteredGraph<'graph, Self::Graph>>>, GraphError>

Source§

impl<G> FilterOps for G
where G: GraphView,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'graph, G> GraphViewOps<'graph> for G
where G: GraphView + 'graph,

Source§

fn unique_layers(&self) -> Box<dyn Iterator<Item = ArcStr> + Send + Sync>

Return all the layer ids in the graph

Source§

fn earliest_time(&self) -> Option<EventTime>

Get the EventTime of the earliest activity in the graph.

Source§

fn latest_time(&self) -> Option<EventTime>

Get the EventTime of the latest activity in the graph.

Source§

fn edges(&self) -> Edges<'graph, G>

Return an iterator over all edges in the graph.
Source§

fn edges_unlocked(&self) -> Edges<'graph, G>

Return an unlocked iterator over all edges in the graph.
Source§

fn nodes(&self) -> Nodes<'graph, G>

Return a View of the nodes in the Graph
Source§

fn materialize(&self) -> Result<MaterializedGraph, GraphError>

Get a graph clone Read more
Source§

fn subgraph<I, V>(&self, nodes: I) -> NodeSubgraph<G>
where I: IntoIterator<Item = V>, V: AsNodeRef,

Source§

fn cache_view(&self) -> CachedView<G>

Source§

fn valid(&self) -> ValidGraph<G>

Source§

fn subgraph_node_types<I, V>( &self, node_types: I, ) -> NodeFilteredGraph<G, Mask<TypeId>>
where I: IntoIterator<Item = V>, V: AsRef<str>,

Source§

fn exclude_nodes<I, V>(&self, nodes: I) -> NodeSubgraph<G>
where I: IntoIterator<Item = V>, V: AsNodeRef,

Source§

fn count_nodes(&self) -> usize

Return the number of nodes in the graph.
Source§

fn count_edges(&self) -> usize

Return the number of edges in the graph.
Source§

fn count_temporal_edges(&self) -> usize

Source§

fn has_node<T>(&self, v: T) -> bool
where T: AsNodeRef,

Check if the graph contains a node v.
Source§

fn has_edge<T>(&self, src: T, dst: T) -> bool
where T: AsNodeRef,

Check if the graph contains an edge given a pair of nodes (src, dst).
Source§

fn node<T>(&self, v: T) -> Option<NodeView<'graph, G>>
where T: AsNodeRef,

Get a node v.
Source§

fn edge<T>(&self, src: T, dst: T) -> Option<EdgeView<G>>
where T: AsNodeRef,

Get an edge (src, dst).
Source§

fn properties(&self) -> Properties<G>

Get all property values of this graph. Read more
Source§

fn metadata(&self) -> Metadata<'graph, G>

Get a view of the metadat for this graph
Source§

fn is_empty(&self) -> bool

Check if the graph is empty.
Source§

impl<G> InnerFilterOps for G
where G: GraphView,

Source§

fn filter_node_inner(&self, node: NodeStorageRef<'_>) -> bool

Source§

fn filtered_inner(&self) -> bool

Source§

fn filter_edge_inner(&self, edge: EdgeStorageRef<'_>) -> bool

Source§

fn filter_edge_layer_inner( &self, edge: EdgeStorageRef<'_>, layer: usize, ) -> bool

handles edge and edge layer filter (not exploded edge filter or windows)
Source§

fn filter_exploded_edge_inner(&self, eid: ELID, t: EventTime) -> bool

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<'graph, G> InternalFilter<'graph> for G
where G: GraphView + 'graph,

Source§

type Graph = G

Source§

type Filtered<Next: GraphViewOps<'graph> + 'graph> = Next

Source§

fn base_graph(&self) -> &<G as InternalFilter<'graph>>::Graph

Source§

fn apply_filter<Next>( &self, filtered_graph: Next, ) -> <G as InternalFilter<'graph>>::Filtered<Next>
where Next: GraphViewOps<'graph> + 'graph,

Source§

impl<G> InternalLayerOps for G

Source§

fn layer_ids(&self) -> &LayerIds

get the layer ids for the graph view
Source§

fn layer_ids_from_names(&self, key: Layer) -> Result<LayerIds, InvalidLayer>

Get the layer id for the given layer name
Source§

fn valid_layer_ids_from_names(&self, key: Layer) -> LayerIds

Get the valid layer ids for given layer names
Source§

impl<G> InternalMaterialize for G

Source§

impl<P> InternalMetadataOps for P

Source§

fn get_metadata_id(&self, name: &str) -> Option<usize>

Find id for property name (note this only checks the meta-data, not if the property actually exists for the entity)
Source§

fn get_metadata_name(&self, id: usize) -> ArcStr

Source§

fn metadata_ids(&self) -> Box<dyn Iterator<Item = usize> + Send + Sync + '_>

Source§

fn metadata_keys(&self) -> Box<dyn Iterator<Item = ArcStr> + Send + Sync + '_>

Source§

fn metadata_values( &self, ) -> Box<dyn Iterator<Item = Option<Prop>> + Send + Sync + '_>

Source§

fn get_metadata(&self, id: usize) -> Option<Prop>

Source§

impl<G> InternalStorageOps for G

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<G> IntoDynamic for G

Source§

impl<G> IntoDynamicOrMutable for G

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: InternalFilter<'graph> + 'graph,

Source§

type LayeredViewType = <V as InternalFilter<'graph>>::Filtered<LayeredGraph<<V as InternalFilter<'graph>>::Graph>>

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<L>(&self, name: L) -> bool
where L: SingleLayer,

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§

fn num_layers(&self) -> usize

Returns the number of layers
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> TimeOps<'graph> for V
where V: InternalFilter<'graph> + 'graph + InternalTimeOps<'graph>,

Source§

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

Source§

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

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

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

Return the time entry of the view or None if the view end is unbounded.
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 + 'graph, I: TryInto<Interval> + Clone, ParseTimeError: From<<I as TryInto<Interval>>::Error>,

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 expanding_aligned<I>( &self, step: I, alignment_unit: AlignmentUnit, ) -> Result<WindowSet<'graph, V>, ParseTimeError>
where V: Clone + 'graph, I: TryInto<Interval>, ParseTimeError: From<<I as TryInto<Interval>>::Error>,

Creates a WindowSet with the given step size using an expanding window, where the windows are aligned with the alignment_unit passed. 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 + 'graph, I: TryInto<Interval> + Clone, ParseTimeError: From<<I as TryInto<Interval>>::Error>,

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. Note that passing a step larger than window can lead to some entries appearing before the start of the first window and/or after the end of the last window (i.e. not included in any window) Read more
Source§

fn rolling_aligned<I>( &self, window: I, step: Option<I>, alignment_unit: AlignmentUnit, ) -> Result<WindowSet<'graph, V>, ParseTimeError>
where V: Clone + 'graph, I: TryInto<Interval>, ParseTimeError: From<<I as TryInto<Interval>>::Error>,

Creates a WindowSet with the given window size and optional step using a rolling window, where the windows are aligned with the alignment_unit passed. The last window may fall partially outside the range of the data/view. Note that, depending on the alignment_unit, passing a step larger than window can lead to some entries appearing before the start of the first window and/or after the end of the last window (i.e. not included in any window) 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
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<G> BoxableGraphView for G

Source§

impl<T> GraphView for T

Source§

impl<P> InternalPropertiesOps for P

Source§

impl<T> StateType for T
where T: PartialEq + Clone + Debug + Send + Sync + 'static,

Source§

impl<G> StaticGraphViewOps for G
where G: GraphView + 'static,