network_sample_smallworld: Small world graph

Description Usage Arguments

View source: R/network_sample_smallworld.R

Description

sample a small world graph and return the (normalized) adjacency matrix

Usage

1
network_sample_smallworld(N, dim = 1, nei = 1, p = 0.3)

Arguments

N

integer constant, the population size.

dim

integer constant, dimension of the starting lattice;

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.


nianqiaoju/agents documentation built on Feb. 19, 2021, 12:18 a.m.