as.network.Rcpp_DirectedNet: Convert a DirectedNet to a network object

Description Usage Arguments Value See Also Examples

View source: R/binary-net.R

Description

Convert a DirectedNet to a network object

Usage

1
2
## S3 method for class 'Rcpp_DirectedNet'
as.network(x, ...)

Arguments

x

the object

...

unused

Value

A network object

See Also

DirectedNet

Examples

1
2
3
4
5
6
7
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

lolog documentation built on July 1, 2021, 9:09 a.m.