Enum cnetworks::Model [−][src]
Expand description
Model
decides the algorithm used to connect the nodes during Network
’s
initialization.
Variants
The Erdos–Renyi random network model.
Fields of ER
The Barabasi–Albert preferential attachment model.
Fields of BA
Placeholder for a network with no connections.
Implementations
Initialize (or reinitialize) the network’s links according to the Erdos-Renyi model. See the Model for more detailed model explanation.
If whole
is true
then the network is artificially stitched together after
initialization, otherwise there is no guarantee that there are no ‘outsiders’ or even
separate networks.
Beware that the network is not cleared before linking.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Model
impl UnwindSafe for Model
Blanket Implementations
Mutably borrows from an owned value. Read more