[][src]Struct graph_gen::ErModel

pub struct ErModel { /* fields omitted */ }

The configuration of an Erdos-Renyi G(n, p) model.

Methods

impl ErModel[src]

pub fn new(n: usize, p: f64) -> Self[src]

pub fn digraph(self) -> Self[src]

pub fn with_self_loops(self) -> Self[src]

pub fn generator(self) -> ErGenerator[src]

returns a new generator for the given model

Trait Implementations

impl Clone for ErModel[src]

impl Copy for ErModel[src]

impl Debug for ErModel[src]

Auto Trait Implementations

impl RefUnwindSafe for ErModel

impl Send for ErModel

impl Sync for ErModel

impl Unpin for ErModel

impl UnwindSafe for ErModel

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