pub struct AdjacencyMap<T> { /* private fields */ }
Expand description
A graph traversal that builds an adjacency map
Implementations§
Source§impl<T> AdjacencyMap<T>
impl<T> AdjacencyMap<T>
Source§impl<T> AdjacencyMap<T>
impl<T> AdjacencyMap<T>
Sourcepub fn into_postorder_topological(self) -> IntoPostorderTopologicalIter<T>
pub fn into_postorder_topological(self) -> IntoPostorderTopologicalIter<T>
Returns an owned iterator over the nodes in postorder topological order, starting from the roots.
Sourcepub fn into_breadth_first_edges(self) -> IntoBreadthFirstEdges<T>
pub fn into_breadth_first_edges(self) -> IntoBreadthFirstEdges<T>
Returns an owned iterator over all edges (node pairs) in reverse breadth first order, starting from the roots.
Sourcepub fn postorder_topological(&self) -> PostorderTopologicalIter<'_, T>
pub fn postorder_topological(&self) -> PostorderTopologicalIter<'_, T>
Returns an iterator over the nodes in postorder topological order, starting from the roots.
Sourcepub fn postorder_topological_from_node<'graph>(
&'graph self,
node: &'graph T,
) -> PostorderTopologicalIter<'graph, T>
pub fn postorder_topological_from_node<'graph>( &'graph self, node: &'graph T, ) -> PostorderTopologicalIter<'graph, T>
Returns an iterator over the nodes in postorder topological order, starting from the given node.
Trait Implementations§
Source§impl<T: Clone> Clone for AdjacencyMap<T>
impl<T: Clone> Clone for AdjacencyMap<T>
Source§fn clone(&self) -> AdjacencyMap<T>
fn clone(&self) -> AdjacencyMap<T>
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<T: Debug> Debug for AdjacencyMap<T>
impl<T: Debug> Debug for AdjacencyMap<T>
Source§impl<T> Default for AdjacencyMap<T>
impl<T> Default for AdjacencyMap<T>
Source§impl<'de, T> Deserialize<'de> for AdjacencyMap<T>
impl<'de, T> Deserialize<'de> for AdjacencyMap<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> GraphStore for AdjacencyMap<T>
impl<T> GraphStore for AdjacencyMap<T>
Source§impl<T> PartialEq for AdjacencyMap<T>
impl<T> PartialEq for AdjacencyMap<T>
Source§impl<T> Serialize for AdjacencyMap<T>
impl<T> Serialize for AdjacencyMap<T>
Source§impl<T: TraceRawVcs> TraceRawVcs for AdjacencyMap<T>
impl<T: TraceRawVcs> TraceRawVcs for AdjacencyMap<T>
fn trace_raw_vcs(&self, __context__: &mut TraceRawVcsContext)
fn get_raw_vcs(&self) -> Vec<RawVc>
Source§impl<T: ValueDebugFormat + Debug + Send + Sync> ValueDebugFormat for AdjacencyMap<T>
impl<T: ValueDebugFormat + Debug + Send + Sync> ValueDebugFormat for AdjacencyMap<T>
fn value_debug_format<'a>(&'a self, depth: usize) -> ValueDebugFormatString<'a>
impl<T> Eq for AdjacencyMap<T>
impl<T> NonLocalValue for AdjacencyMap<T>where
T: NonLocalValue,
Auto Trait Implementations§
impl<T> Freeze for AdjacencyMap<T>
impl<T> RefUnwindSafe for AdjacencyMap<T>where
T: RefUnwindSafe,
impl<T> Send for AdjacencyMap<T>where
T: Send,
impl<T> Sync for AdjacencyMap<T>where
T: Sync,
impl<T> Unpin for AdjacencyMap<T>where
T: Unpin,
impl<T> UnwindSafe for AdjacencyMap<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Store> GraphTraversal for Storewhere
Store: GraphStore,
impl<Store> GraphTraversal for Storewhere
Store: GraphStore,
Source§fn visit<VisitImpl, Abort, Impl>(
self,
root_edges: impl IntoIterator<Item = <VisitImpl as Visit<<Store as GraphStore>::Node, Abort, Impl>>::Edge>,
visit: VisitImpl,
) -> impl Future<Output = GraphTraversalResult<Result<Store, Error>, Abort>> + Send
fn visit<VisitImpl, Abort, Impl>( self, root_edges: impl IntoIterator<Item = <VisitImpl as Visit<<Store as GraphStore>::Node, Abort, Impl>>::Edge>, visit: VisitImpl, ) -> impl Future<Output = GraphTraversalResult<Result<Store, Error>, Abort>> + Send
Visits the graph starting from the given roots
, and returns a future
that will resolve to the traversal result.
fn skip_duplicates(self) -> SkipDuplicates<Store>
fn skip_duplicates_with_visited_nodes( self, visited: VisitedNodes<<Store as GraphStore>::Node>, ) -> SkipDuplicates<Store>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more