WattsStrogatz Type

Constructors

Constructor Description

WattsStrogatz()

Full Usage: WattsStrogatz()

Returns: WattsStrogatz
Returns: WattsStrogatz

Static members

Static member Description

WattsStrogatz.initWattsStrogatz n k p

Full Usage: WattsStrogatz.initWattsStrogatz n k p

Parameters:
    n : int - Specifies the number of nodes
    k : int - Specifies the degree of the nodes
    p : float - Specifies the rewiring probability

Returns: UndirectedGraph<int, int, float> An UndirectedGraph

Returns a Watts-Strogatz graph https://en.wikipedia.org/wiki/Watts%E2%80%93Strogatz_model

n : int

Specifies the number of nodes

k : int

Specifies the degree of the nodes

p : float

Specifies the rewiring probability

Returns: UndirectedGraph<int, int, float>

An UndirectedGraph