pub struct SpinglassOptions {
pub spins: usize,
pub parallel_update: bool,
pub start_temperature: f64,
pub stop_temperature: f64,
pub cooling_factor: f64,
pub update_rule: SpincommUpdate,
pub gamma: f64,
pub implementation: SpinglassImplementation,
pub gamma_minus: f64,
}Expand description
Options of Graph::community_spinglass and
Graph::community_spinglass_single, with the defaults suggested by igraph.
Fields§
§spins: usizeNumber of spins, i.e. the maximum number of communities (default 25).
parallel_update: boolUpdate all spins in parallel (default false); not supported by
SpinglassImplementation::Neg.
start_temperature: f64Starting temperature (default 1.0).
stop_temperature: f64Stopping temperature (default 0.01).
cooling_factor: f64Cooling factor of the simulated annealing (default 0.99).
update_rule: SpincommUpdateNull model: SpincommUpdate::Config (configuration model, default)
or SpincommUpdate::Simple (Erdős–Rényi).
gamma: f64Resolution parameter γ (default 1.0, must be in [0, 1e150]).
implementation: SpinglassImplementationImplementation: SpinglassImplementation::Orig (default, faster) or
SpinglassImplementation::Neg (allows negative weights).
gamma_minus: f64Resolution for the negative part of the network, Neg only (default
1.0, magnitude at most 1e150).
Trait Implementations§
Source§impl Clone for SpinglassOptions
impl Clone for SpinglassOptions
Source§fn clone(&self) -> SpinglassOptions
fn clone(&self) -> SpinglassOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpinglassOptions
impl Debug for SpinglassOptions
Source§impl Default for SpinglassOptions
impl Default for SpinglassOptions
Source§impl PartialEq for SpinglassOptions
impl PartialEq for SpinglassOptions
Source§fn eq(&self, other: &SpinglassOptions) -> bool
fn eq(&self, other: &SpinglassOptions) -> bool
self and other values to be equal, and is used by ==.