Learn R Programming

EpiModel (version 2.5.0)

network_initialize: Initialize Network Object

Description

Initialize an undirected network object for use in EpiModel workflows.

Usage

network_initialize(n)

Value

Returns an object of class network.

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.

Examples

Run this code
nw <- network_initialize(100)
nw

Run the code above in your browser using DataLab