pub enum ReciprocityMode {
Default,
Ratio,
}Expand description
Reciprocity formula choice. Counterpart of upstream’s
igraph_reciprocity_t (IGRAPH_RECIPROCITY_DEFAULT /
IGRAPH_RECIPROCITY_RATIO).
ReciprocityMode::Default—rec / total_edges. The fraction of directed edges that have a reverse counterpart.ReciprocityMode::Ratio—rec / (rec + nonrec). The fraction of connected ordered vertex pairs that are reciprocal. The two formulas agree on graphs with no parallel edges.
Variants§
Trait Implementations§
Source§impl Clone for ReciprocityMode
impl Clone for ReciprocityMode
Source§fn clone(&self) -> ReciprocityMode
fn clone(&self) -> ReciprocityMode
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 ReciprocityMode
impl Debug for ReciprocityMode
Source§impl PartialEq for ReciprocityMode
impl PartialEq for ReciprocityMode
impl Copy for ReciprocityMode
impl Eq for ReciprocityMode
impl StructuralPartialEq for ReciprocityMode
Auto Trait Implementations§
impl Freeze for ReciprocityMode
impl RefUnwindSafe for ReciprocityMode
impl Send for ReciprocityMode
impl Sync for ReciprocityMode
impl Unpin for ReciprocityMode
impl UnsafeUnpin for ReciprocityMode
impl UnwindSafe for ReciprocityMode
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