stepSim: stepSim

Description Usage Arguments Details Value Author(s)

View source: R/sirgraph.R

Description

Discrete time-stepping SIR graph model

Usage

1
stepSim(g, spreader, stopper, after = force)

Arguments

g

an SIR graph

spreader

a spreader function

stopper

a stopper function

after

function to call after each spread function call

Details

Starting with a graph, infect the initial cases, then run the spreader until the stopper is true. Optionally run the plotter every iteration

Value

the end state of the graph

Author(s)

Barry S Rowlingson


barryrowlingson/sirgraph documentation built on April 8, 2020, 7:19 p.m.