network_initialize: Initialize Network Object

View source: R/network.R

network_initializeR 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


EpiModel documentation built on July 9, 2023, 5:21 p.m.