Learn R Programming

ergm (version 3.9.4)

empty_network: Create an empty copy of a network object

Description

Initializes an empty network with the same vertex and network attributes as the original network, but no edges.

Usage

empty_network(nw, ignore.nattr = c("bipartite", "directed", "hyper",
  "loops", "mnext", "multiple", "n"), ignore.vattr = c())

Arguments

nw

a network object

ignore.nattr

character vector of the names of network-level attributes to ignore when updating network objects (defaults to standard network properties)

ignore.vattr

character vector of the names of vertex-level attributes to ignore when updating network objects