Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.36 KB

generator.rst

File metadata and controls

47 lines (29 loc) · 1.36 KB

NetworkGenerator: Generate instances from a class of random networks

epydemic

NetworkGenerator

Defining the class of network

The class of network generated by the generator is defined by sub-classing and overriding the _generate method. This will make use of the experimental parameters governing the experiment in which the network is used.

See standard-generators for the built-in generators that create the most common kinds of network. See build-generators for an example of how to define a new generator.

Single instance generation

Multiple instance generation (iteration)

NetworkGenerator exports an iterator interface to allow the class of networks to be sampled repeatedly.