grow_lattice: Regular lattice network model

Description Usage Arguments Value References Examples

Description

Grow regular lattice networks, in which every node is connected to m neighbors.

Usage

1
grow_lattice(n = 100L, k = 10L)

Arguments

n

Integer. Number of nodes in the network.

k

Integer. Number of edges added for each incoming node. Can only be even.

Value

n x n adjacency matrix.

References

Watts, D. J., & Strogatz, S. H. (1998). Collective dynamics of ‘small-world’ networks. Nature, 393(6684), 440-442.

Examples

1
2
3
4
5
6
7
8
# generate small lattice
grow_lattice(n = 6, k = 2)

## Not run: 
# generate large lattice
grow_lattice(n = 100, k = 10, p = .1)

## End(Not run)

memnet documentation built on May 2, 2019, 9:35 a.m.