pub enum LoopsMode {
NoLoops,
Once,
Twice,
}Expand description
How to convert diagonal entries into self-loops.
Matches igraph_loops_t from include/igraph_constructors.h.
Variants§
NoLoops
Ignore the diagonal; the result contains no self-loops.
Once
A(i, i) is the number of self-loops at vertex i.
Twice
A(i, i) is twice the number of self-loops at vertex i
(must be even; odd values are rejected with
IgraphError::InvalidArgument). Collapses to Once for
the Directed, Upper and Lower modes per upstream.
Trait Implementations§
impl Copy for LoopsMode
impl Eq for LoopsMode
impl StructuralPartialEq for LoopsMode
Auto Trait Implementations§
impl Freeze for LoopsMode
impl RefUnwindSafe for LoopsMode
impl Send for LoopsMode
impl Sync for LoopsMode
impl Unpin for LoopsMode
impl UnsafeUnpin for LoopsMode
impl UnwindSafe for LoopsMode
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