as.network.Rcpp_DirectedNet {lolog} | R Documentation |
Convert a DirectedNet to a network object
Description
Convert a DirectedNet to a network object
Usage
## S3 method for class 'Rcpp_DirectedNet'
as.network(x, ...)
Arguments
x |
the object |
... |
unused |
Value
A network object
See Also
Examples
el <- matrix(c(1,2),ncol=2)
#make an UndirectedNet with one edge and 5 nodes
net <- new(UndirectedNet, el, 5L)
nw <- as.network(net)
nw
[Package lolog version 1.3.1 Index]