adj_to_wdnet | R Documentation |
wdnet
object using an adjacency matrixCreates a wdnet
object using an adjacency matrix
adj_to_wdnet(adj, directed = TRUE, weighted = TRUE, nodegroup, ...)
adj |
An adjacency matrix used to extract |
directed |
Logical, whether the network is directed (TRUE) or undirected
(FALSE). If |
weighted |
Logical, whether the network is weighted (TRUE) or unweighted (FALSE). |
nodegroup |
A numeric vector of node groups. |
... |
Additional components to be added to the |
A wdnet
object with the specified adj
.
adj <- matrix(c(0, 1, 2, 0), nrow = 2, ncol = 2, byrow = TRUE)
adj_to_wdnet(adj = adj, directed = TRUE, weighted = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.