pub struct BarabasiAgingOptions<'a> {
pub m: usize,
pub outseq: Option<&'a [i64]>,
pub outpref: bool,
pub pa_exp: f64,
pub aging_exp: f64,
pub aging_bins: usize,
pub zero_deg_appeal: f64,
pub zero_age_appeal: f64,
pub deg_coef: f64,
pub age_coef: f64,
pub directed: bool,
}Expand description
Options of Graph::barabasi_aging_game.
The attractiveness of a vertex with (in-)degree k and age l is
(deg_coef * k^pa_exp + zero_deg_appeal) * (age_coef * l^aging_exp + zero_age_appeal).
The defaults (those of R igraph’s sample_pa_age) describe linear
preferential attachment without aging.
Fields§
§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 initiated by a vertex count in its attractiveness
(default false).
pa_exp: f64Preferential attachment exponent (default 1).
aging_exp: f64Aging exponent, usually negative (default 0, i.e. no aging).
aging_bins: usizeNumber of age bins (default 300).
zero_deg_appeal: f64Degree dependent attractiveness of zero-degree vertices (default 1).
zero_age_appeal: f64Age dependent attractiveness of age-zero vertices (default 0).
deg_coef: f64Coefficient of the degree term (default 1).
age_coef: f64Coefficient of the age term (default 1).
directed: boolWhether to create a directed graph (default true).
Trait Implementations§
Source§impl<'a> Clone for BarabasiAgingOptions<'a>
impl<'a> Clone for BarabasiAgingOptions<'a>
Source§fn clone(&self) -> BarabasiAgingOptions<'a>
fn clone(&self) -> BarabasiAgingOptions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more