pub enum ChungLuVariant {
Original,
Maxent,
Nr,
}Expand description
Variant of the Chung–Lu connection-probability formula.
All three share the base q_ij = w_i · w_j / S with
S = Σ out_weights.
Variants§
Original
p_ij = min(q_ij, 1). The original Chung–Lu (2002) formula.
Saturates to 1 when q_ij > 1.
Maxent
p_ij = q_ij / (1 + q_ij). The maximum-entropy / generalised
random-graph variant (Park & Newman 2004).
Nr
p_ij = 1 - exp(-q_ij). The Norros–Reittu (2006) simple-graph
projection.
Trait Implementations§
Source§impl Clone for ChungLuVariant
impl Clone for ChungLuVariant
Source§fn clone(&self) -> ChungLuVariant
fn clone(&self) -> ChungLuVariant
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 ChungLuVariant
impl Debug for ChungLuVariant
Source§impl PartialEq for ChungLuVariant
impl PartialEq for ChungLuVariant
impl Copy for ChungLuVariant
impl Eq for ChungLuVariant
impl StructuralPartialEq for ChungLuVariant
Auto Trait Implementations§
impl Freeze for ChungLuVariant
impl RefUnwindSafe for ChungLuVariant
impl Send for ChungLuVariant
impl Sync for ChungLuVariant
impl Unpin for ChungLuVariant
impl UnsafeUnpin for ChungLuVariant
impl UnwindSafe for ChungLuVariant
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