Class EpidemicSimulationSEIR

Inheritance Relationships

Base Type

Class Documentation

class EpidemicSimulationSEIR : public NetworKit::Algorithm

Node centrality index which ranks nodes by their degree. Optional normalization by maximum degree.

Public Functions

EpidemicSimulationSEIR(const Graph &G, count tMax, double transP, count eTime, count iTime, node zero)

Simulates an epidemic spread using the Susceptible-Exposed-Infectious-Removed (SEIR) model.

Parameters:
  • G – The network.

  • tMax – Max. number of timesteps.

  • transP – Transmission probability.

  • eTime – Exposed time.

  • iTime – Infectious time.

  • zero – Starting node.

virtual void run() override

The generic run method which calls runImpl() and takes care of setting hasRun to the appropriate value.

const std::vector<std::vector<count>> &getData() const

Returns the data from the simulation (only valid after run() was called).

Returns:

Vector of vectors, containing “zero”, “time”, “state” and “count” values for each node.