Enum graph_types::GraphKind
source · #[repr(u8)]pub enum GraphKind {
Directed,
Undirected,
}
Expand description
Mark the graph as directed or undirected.
Generally speaking, a directed graph engine can insert undirected edges, but a undirected graph engine cannot insert directed edges.
Examples
use graph_theory::{graph_engines::CycleGraph, GraphEngine, GraphKind};
assert_eq!(CycleGraph::one_way(5).graph_kind(), GraphKind::Directed);
assert_eq!(CycleGraph::two_way(5).graph_kind(), GraphKind::Undirected);
Variants§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GraphKind
impl Send for GraphKind
impl Sync for GraphKind
impl Unpin for GraphKind
impl UnwindSafe for GraphKind
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