as.network.Rcpp_UndirectedNet function

Convert a UndirectedNet to a network object

Convert a UndirectedNet to a network object

## S3 method for class 'Rcpp_UndirectedNet' as.network(x, ...)

Arguments

  • x: the object
  • ...: unused

Returns

A network object

Examples

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

See Also

UndirectedNet