pub enum CascadeModel {
IndependentCascade,
LinearThreshold,
}Expand description
Diffusion model for influence propagation
Variants§
IndependentCascade
Independent Cascade (IC): each active node tries to activate each
inactive neighbor independently with probability edge_weight
LinearThreshold
Linear Threshold (LT): a node activates when the total weight of incoming active neighbors exceeds a per-node threshold drawn from Uniform(0, 1)
Trait Implementations§
Source§impl Clone for CascadeModel
impl Clone for CascadeModel
Source§fn clone(&self) -> CascadeModel
fn clone(&self) -> CascadeModel
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 CascadeModel
impl Debug for CascadeModel
Source§impl Default for CascadeModel
impl Default for CascadeModel
Source§fn default() -> CascadeModel
fn default() -> CascadeModel
Returns the “default value” for a type. Read more
Source§impl PartialEq for CascadeModel
impl PartialEq for CascadeModel
impl StructuralPartialEq for CascadeModel
Auto Trait Implementations§
impl Freeze for CascadeModel
impl RefUnwindSafe for CascadeModel
impl Send for CascadeModel
impl Sync for CascadeModel
impl Unpin for CascadeModel
impl UnsafeUnpin for CascadeModel
impl UnwindSafe for CascadeModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more