Enum cnetworks::NetworkModel[][src]

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

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

Variants

ER

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

BA

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.

None

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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>,