network_initialize {tergmLite}R Documentation

Initialize Network Object

Description

Initialize an undirected network object for use in EpiModel workflows.

Usage

network_initialize(
  n,
  directed = FALSE,
  hyper = FALSE,
  loops = FALSE,
  multiple = FALSE,
  bipartite = FALSE
)

Arguments

n

Network size.

directed

logical; should edges be interpreted as directed?

hyper

logical; are hyperedges allowed?

loops

logical; should loops be allowed?

multiple

logical; are multiplex edges allowed?

bipartite

count; should the network be interpreted as bipartite? If present (i.e., non-NULL) it is the count of the number of actors in the first mode of the bipartite network. In this case, the overall number of vertices is equal to the number of 'actors' (first mode) plus the number of ‘events’ (second mode), with the vertex.ids of all actors preceeding all events. The edges are then interpreted as nondirected.

Details

This function is used in EpiModel workflows to initialize an empty network object with the directed network attribute hard set to FALSE.

Value

Returns an object of class network.

Examples

## Not run: 
nw <- network_initialize(100)
nw

## End(Not run)


[Package tergmLite version 2.6.1 Index]