Learn R Programming

SeqNet (version 1.1.3)

ring_lattice_cpp: C++ implementation for creating a ring lattice

Description

C++ implementation for creating a ring lattice

Usage

ring_lattice_cpp(p, neig_size)

Arguments

p

The number of nodes in the lattice.

neig_size

The neighborhood side within which nodes are connected.

Value

Returns the adjacency matrix for the ring lattice.