An internal function to generate a new network
object using
the output (lists of toggled heads and tail vertices) from an ERGM MCMC or
SAN process.
newnw.extract(oldnw, z = NULL, output = "network", response = NULL)
a network object (presumably input to the ergm process) from which the network- and vertex-level attributes will be copied
a list having either a component named newedgelist
or two components newtails
and newheads
containing
the ids of the head and tails vertices of the edges. Optionally,
it may also contain newweights
, containing edgewights. If
not passed, newnw.extract
searches for an .update
network
attribute on oldnw
and attempts to use that instead, deleting
it from the returned network.
passed to network.update
, which claims not to
use it
optional character string giving the name of the edge attribute where the edge values (weight/count) should be stored.
a network
object with properties copied from
oldnw
and edges corresponding to the lists of tails and head vertex
ids in z