Enum cnetworks::NetworkModel[][src]

pub enum NetworkModel {
    ER {
        p: f64,
        whole: bool,
    BA {
        m0: usize,
        m: usize,

NetworkModel decides the algorithm used to connect the nodes during Network’s initialization.



The Erdos–Renyi random network model.

Show fields

Fields of ER

p: f64

The probability of connecting any given pair of nodes.

whole: bool

Should the network be in one piece


The Barabasi–Albert preferential attachment model.

Show fields

Fields of BA

m0: usize

The initial number of clustered nodes.

m: usize

The number of nodes added in each step during network creation. Keep in mind that this should be strictly less or equal m0 and the Barabasi-Albert initialization fuction will panic if this is not the case.


Placeholder for a network with no connections.

Trait Implementations

impl Clone for NetworkModel[src]

impl Debug for NetworkModel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,