networks#

Networks that connect people within a population

Classes

Route

A transmission route -- e.g., a network, mixing pool, environmental transmission, etc.

Network

A class holding a single network of contact edges (connections) between people as well as methods for updating these.

DynamicNetwork

A network where partnerships update dynamically

SexualNetwork

Base class for all sexual networks

StaticNet

A network class of static partnerships converted from a networkx graph.

RandomNet

Random connectivity between agents

ErdosRenyiNet

In the Erdos-Renyi network, every possible edge has a probability, p, of being created on each time step.

DiskNet

Disk graph in which edges are made between agents located within a user-defined radius.

NullNet

A convenience class for a network of size n that only has self-connections with a weight of 0.

MFNet

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

MSMNet

A network that randomly pairs males

EmbeddingNet

Heterosexual age-assortative network based on a one-dimensional embedding.

MaternalNet

Base class for maternal transmission Use PrenatalNet and PostnatalNet to capture transmission in different phases

PrenatalNet

Prenatal transmission network

PostnatalNet

Postnatal transmission network

AgeGroup

A simple age-based filter that returns uids of agents that match the criteria

MixingPools

A container for creating a rectangular array of MixingPool instances

MixingPool

Define a single mixing pool; can be used as a drop-in replacement for a network.