Description Usage Arguments Value See Also Examples
Convert a UndirectedNet to a network object
1 2 | ## S3 method for class 'Rcpp_UndirectedNet'
as.network(x, ...)
|
x |
the object |
... |
unused |
A network object
1 2 3 4 5 6 7 8 | el <- matrix(c(1,2),ncol=2)
#make an UndirectedNet with one edge and 5 nodes
net <- new(UndirectedNet, el, 5L)
net[1:5,1:5]
nw <- as.network(net)
nw
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.