network_initialize {EpiModel}R Documentation

Initialize Network Object

Description

Initialize an undirected network object for use in EpiModel workflows.

Usage

network_initialize(n)

Arguments

n

Network size.

Details

This function is used in EpiModel workflows to initialize an empty network object. The network attributes directed, bipartite, hyper, loops, and multiple are set to FALSE.

Value

Returns an object of class network.

Examples

nw <- network_initialize(100)
nw


[Package EpiModel version 2.4.0 Index]