pub enum ToUndirected {
Each,
Collapse,
Mutual,
}Expand description
How to convert directed edges to undirected ones (igraph_to_undirected_t).
Variants§
Each
Keep every edge.
Collapse
One undirected edge per connected vertex pair.
Mutual
One undirected edge per mutual pair.
Trait Implementations§
Source§impl Clone for ToUndirected
impl Clone for ToUndirected
Source§fn clone(&self) -> ToUndirected
fn clone(&self) -> ToUndirected
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 ToUndirected
Source§impl Debug for ToUndirected
impl Debug for ToUndirected
impl Eq for ToUndirected
Source§impl From<ToUndirected> for igraph_to_undirected_t
impl From<ToUndirected> for igraph_to_undirected_t
Source§fn from(value: ToUndirected) -> igraph_to_undirected_t
fn from(value: ToUndirected) -> igraph_to_undirected_t
Converts to this type from the input type.
Source§impl Hash for ToUndirected
impl Hash for ToUndirected
Source§impl PartialEq for ToUndirected
impl PartialEq for ToUndirected
Source§fn eq(&self, other: &ToUndirected) -> bool
fn eq(&self, other: &ToUndirected) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToUndirected
Auto Trait Implementations§
impl Freeze for ToUndirected
impl RefUnwindSafe for ToUndirected
impl Send for ToUndirected
impl Sync for ToUndirected
impl Unpin for ToUndirected
impl UnsafeUnpin for ToUndirected
impl UnwindSafe for ToUndirected
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