MFNet#

class MFNet(pars=None, key_dict=None, **kwargs)[source]#

Bases: SexualNetwork

This network is built by randomly pairing males and female with variable relationship durations.

Attributes

beta

Relative transmission on each network edge

members

Return sorted array of all members

now

Return the current time, i.e. the time vector at the current timestep.

p1

The first half of a network edge (person 1)

p2

The second half of a network edge (person 2)

states

Return a flat list of all states

statesdict

Return a flat dictionary (objdict) of all states

Methods

set_network_states(upper_age=None)[source]#

Set network states including age of entry into network and participation rates

set_participation(upper_age=None)[source]#

Set people who will participate in the network at some point

set_debut(upper_age=None)[source]#

Set debut age