Description Usage Arguments Details Value Examples
The supplied matrix x should either be an adjacency matrix (type = "adjacency"), or an edgelist (type = "edgelist"). Adjacency matrices should be an n x n matrix A with A[i, j] = 1 if an edge exists between node i and j. Edgelists are of the form returned by which(x == condition, arr.ind = TRUE) for matrices x in adjacency matrix form.
1 2 3 | ## S3 method for class 'matrix'
as.parental(x, type = "adjacency", n,
...)
|
x |
An object of class 'matrix' |
type |
Either "adjacency" or "edgelist" |
n |
The number of nodes n. Only required for type = "edgelist" |
... |
Further arguments (unused) |
For type = "edgelist", the number of nodes n must be specified.
An object of class 'parental'.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.