pub struct RecentDegreeOptions<'a> {
pub power: f64,
pub window: usize,
pub m: usize,
pub outseq: Option<&'a [i64]>,
pub outpref: bool,
pub zero_appeal: f64,
pub directed: bool,
}Expand description
Options of Graph::recent_degree_game.
The probability that a vertex is cited is proportional to
k^power + zero_appeal, where k is the number of edges it gained in the
last window time steps.
Fields§
§power: f64Exponent of the recent degree (default 1).
window: usizeSize of the time window (default 1).
m: usizeEdges added per time step when outseq is None (default 1).
outseq: Option<&'a [i64]>Edges added in each time step (overrides m). Default None.
outpref: boolWhether edges originated by a vertex also count as recent edges
(default false).
zero_appeal: f64Attractiveness of the vertices without recent edges (default 1).
directed: boolWhether to create a directed graph (default false).
Trait Implementations§
Source§impl<'a> Clone for RecentDegreeOptions<'a>
impl<'a> Clone for RecentDegreeOptions<'a>
Source§fn clone(&self) -> RecentDegreeOptions<'a>
fn clone(&self) -> RecentDegreeOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RecentDegreeOptions<'a>
impl<'a> Debug for RecentDegreeOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for RecentDegreeOptions<'a>
impl<'a> RefUnwindSafe for RecentDegreeOptions<'a>
impl<'a> Send for RecentDegreeOptions<'a>
impl<'a> Sync for RecentDegreeOptions<'a>
impl<'a> Unpin for RecentDegreeOptions<'a>
impl<'a> UnsafeUnpin for RecentDegreeOptions<'a>
impl<'a> UnwindSafe for RecentDegreeOptions<'a>
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