MFNet#
- class MFNet(pars=None, key_dict=None, **kwargs)[source]#
Bases:
SexualNetworkThis network is built by randomly pairing males and female with variable relationship durations.
Attributes
betaRelative transmission on each network edge
membersReturn sorted array of all members
nowShortcut to self.t.now()
p1The first half of a network edge (person 1)
p2The second half of a network edge (person 2)
statesReturn a flat list of all states
statesdictReturn a flat dictionary (objdict) of all states
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods
- set_network_states(upper_age=None)[source]#
Set network states including age of entry into network and participation rates