pub enum Loops {
None,
Twice,
Once,
}Expand description
How self-loops are counted (igraph_loops_t).
Variants§
None
Ignore loop edges.
Twice
Count each loop twice, as it has two endpoints at the same vertex (the graph theoretical convention, which keeps the handshake lemma true).
Once
Count each loop once. Only meaningful when edge directions are ignored: for out- or in-degrees of directed graphs each loop counts once anyway.
Trait Implementations§
impl Copy for Loops
impl Eq for Loops
Source§impl From<Loops> for igraph_loops_t
impl From<Loops> for igraph_loops_t
Source§fn from(value: Loops) -> igraph_loops_t
fn from(value: Loops) -> igraph_loops_t
Converts to this type from the input type.
Source§impl From<bool> for Loops
impl From<bool> for Loops
Source§fn from(loops: bool) -> Self
fn from(loops: bool) -> Self
true maps to Loops::Twice (igraph’s IGRAPH_LOOPS), false to Loops::None.
impl StructuralPartialEq for Loops
Auto Trait Implementations§
impl Freeze for Loops
impl RefUnwindSafe for Loops
impl Send for Loops
impl Sync for Loops
impl Unpin for Loops
impl UnsafeUnpin for Loops
impl UnwindSafe for Loops
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