pub enum GraphDirection {
Outgoing,
Incoming,
Both,
}Expand description
Which way a neighborhood or subgraph walk follows a selected edge.
Every other directed operation follows outgoing edges. A reversed question is asked by swapping the endpoints rather than by changing what an operation means.
Variants§
Outgoing
Follow edges away from their source.
Incoming
Follow edges back towards their source.
Both
Follow edges either way. A self-loop reaches the node it starts at, which the walk has already reached.
Trait Implementations§
Source§impl Clone for GraphDirection
impl Clone for GraphDirection
Source§fn clone(&self) -> GraphDirection
fn clone(&self) -> GraphDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GraphDirection
Source§impl Debug for GraphDirection
impl Debug for GraphDirection
impl Eq for GraphDirection
Source§impl PartialEq for GraphDirection
impl PartialEq for GraphDirection
impl StructuralPartialEq for GraphDirection
Auto Trait Implementations§
impl Freeze for GraphDirection
impl RefUnwindSafe for GraphDirection
impl Send for GraphDirection
impl Sync for GraphDirection
impl Unpin for GraphDirection
impl UnsafeUnpin for GraphDirection
impl UnwindSafe for GraphDirection
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