watts.strogatz.game: The Watts-Strogatz small-world model

View source: R/games.R

watts.strogatz.gameR Documentation

The Watts-Strogatz small-world model

Description

[Deprecated]

watts.strogatz.game() was renamed to sample_smallworld() to create a more consistent API.

Usage

watts.strogatz.game(dim, size, nei, p, loops = FALSE, multiple = FALSE)

Arguments

dim

Integer constant, the dimension of the starting lattice.

size

Integer constant, the size of the lattice along each dimension.

nei

Integer constant, the neighborhood within which the vertices of the lattice will be connected.

p

Real constant between zero and one, the rewiring probability.

loops

Logical scalar, whether loops edges are allowed in the generated graph.

multiple

Logical scalar, whether multiple edges are allowed int the generated graph.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.