Description Usage Arguments Details See Also Examples
A generic for converting objects to adjacency matrices.
1 | as.adjacency(x, ...)
|
x |
An object |
... |
Further arguments, passed to method |
An adjacency matrix is a matrix A of dimension n x n, with A[i, j] = 1 if an edge exist between nodes i and j, where n is the number of nodes.
1 2 | x <- parental(c(), c(1), c(2))
as.adjacency(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.