pub enum EdgeDirection {
Disconnect,
Indeterminate,
TwoWay,
Forward,
Reverse,
}
Expand description
Determines the direction between two nodes
use graph_theory::GraphEngine;
Variants§
Disconnect
Two nodes that are not connected.
Indeterminate
EdgeDirection::Forward in a directed graph, EdgeDirection::TwoWay in an undirected graph
TwoWay
This edge is bidirectional
Forward
This edge is unidirectional
Reverse
This edge is unidirectional and goes in the opposite direction
Trait Implementations§
Source§impl Clone for EdgeDirection
impl Clone for EdgeDirection
Source§fn clone(&self) -> EdgeDirection
fn clone(&self) -> EdgeDirection
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 Debug for EdgeDirection
impl Debug for EdgeDirection
Source§impl PartialEq for EdgeDirection
impl PartialEq for EdgeDirection
impl Copy for EdgeDirection
impl Eq for EdgeDirection
impl StructuralPartialEq for EdgeDirection
Auto Trait Implementations§
impl Freeze for EdgeDirection
impl RefUnwindSafe for EdgeDirection
impl Send for EdgeDirection
impl Sync for EdgeDirection
impl Unpin for EdgeDirection
impl UnwindSafe for EdgeDirection
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