pub enum BipartiteMode {
Out,
In,
All,
}Expand description
Edge-direction policy for the directed variants of the bipartite Erdős–Rényi models. See module docs for the mode semantics.
IGRAPH_ALL translates to BipartiteMode::All: each ordered pair
(b, t) and (t, b) is sampled independently, so mutual edges
between the same b ∈ bottom and t ∈ top can be produced.
Variants§
Out
Arcs from bottom to top. Pair space n1·n2.
In
Arcs from top to bottom. Pair space n1·n2.
All
Each ordered direction sampled independently. Pair space
2·n1·n2; mutual pairs are possible.
Trait Implementations§
Source§impl Clone for BipartiteMode
impl Clone for BipartiteMode
Source§fn clone(&self) -> BipartiteMode
fn clone(&self) -> BipartiteMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BipartiteMode
impl Debug for BipartiteMode
Source§impl PartialEq for BipartiteMode
impl PartialEq for BipartiteMode
impl Copy for BipartiteMode
impl Eq for BipartiteMode
impl StructuralPartialEq for BipartiteMode
Auto Trait Implementations§
impl Freeze for BipartiteMode
impl RefUnwindSafe for BipartiteMode
impl Send for BipartiteMode
impl Sync for BipartiteMode
impl Unpin for BipartiteMode
impl UnsafeUnpin for BipartiteMode
impl UnwindSafe for BipartiteMode
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