Learn R Programming

EpiModel (version 2.2.0)

update_cumulative_edgelist: Update a Cumulative Edgelist of the Specified Network

Description

Update a Cumulative Edgelist of the Specified Network

Usage

update_cumulative_edgelist(dat, network, truncate = Inf)

Arguments

dat

a Master list object of network models

network

the index of the network whose cumulative edgelist will be updated

truncate

after how many steps an edge that is no longer active should be removed from the cumulative edgelist (default = Inf)

Value

an updated Master list object of network models

Truncation

To avoid storing a cumulative edgelist to long, the `truncate` parameter defines a number of steps after which an edge that is no longer active is truncated out of the cummulative edgelist. When `truncate == Inf` (default), no edge is ever removed. When `truncate == 0`, only the active edges are kept. You may want this behavior to keep track of the active edges start step.