net.ring.lattice function

k - regular ring lattice

k - regular ring lattice

Simulate a network with a k -regular ring lattice structure.

net.ring.lattice(n, k)

Arguments

  • n: Number of nodes in the network.
  • k: Number of edges per node.

Returns

A list containing the nodes of the network and their respective neighbors.

Details

The n nodes are placed on a circle and each node is connected to the nearest k neighbors.

Examples

## Not run: x <- net.ring.lattice(1000, 10) ## End(Not run)

References

Duncan J Watts and Steven H Strogatz: Collective dynamics of 'small world' networks, Nature 393, 440-442, 1998.

Author(s)

Xu Dong, Nazrul Shaikh

  • Maintainer: Nazrul Shaikh
  • License: GPL (>= 2)
  • Last published: 2020-12-01

Useful links