Description Usage Arguments Details Value
Return an adjacency matrix for a square lattice.
1 | adjacency.matrix(m, n = NULL)
|
m |
the number of rows in the lattice. |
n |
the number of columns in the lattice. Defaults to |
This function builds the adjacency matrix for the m
by n
square lattice.
A matrix A of 0s and 1s, where A_{ij} is equal to 1 iff vertices i and j are adjacent.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.