Skip to contents

Create a small-world network by rewiring a lattice of size N, degree k.

Usage

make_small_world(N, k, p, label_func = .sw_label_func)

Arguments

N

Population size

k

Seed lattice degree

p

Rewire probability

label_func

Specify a function that takes N, k, p and makes a label assigned to igraph via igraph::graph_attr(...)

Value

igraph::graph