pub enum ToDirected {
Arbitrary,
Mutual,
Random,
Acyclic,
}Expand description
How to convert undirected edges to directed ones (igraph_to_directed_t).
Variants§
Arbitrary
One directed edge with arbitrary direction.
Mutual
Two mutual directed edges.
Random
One directed edge with random direction.
Acyclic
From lower to higher vertex id, giving an acyclic graph.
Trait Implementations§
Source§impl Clone for ToDirected
impl Clone for ToDirected
Source§fn clone(&self) -> ToDirected
fn clone(&self) -> ToDirected
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 ToDirected
Source§impl Debug for ToDirected
impl Debug for ToDirected
impl Eq for ToDirected
Source§impl From<ToDirected> for igraph_to_directed_t
impl From<ToDirected> for igraph_to_directed_t
Source§fn from(value: ToDirected) -> igraph_to_directed_t
fn from(value: ToDirected) -> igraph_to_directed_t
Converts to this type from the input type.
Source§impl Hash for ToDirected
impl Hash for ToDirected
Source§impl PartialEq for ToDirected
impl PartialEq for ToDirected
Source§fn eq(&self, other: &ToDirected) -> bool
fn eq(&self, other: &ToDirected) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToDirected
Auto Trait Implementations§
impl Freeze for ToDirected
impl RefUnwindSafe for ToDirected
impl Send for ToDirected
impl Sync for ToDirected
impl Unpin for ToDirected
impl UnsafeUnpin for ToDirected
impl UnwindSafe for ToDirected
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