networkit.simulation

class networkit.simulation.EpidemicSimulationSEIR(G, tMax, transP, eTime, iTime, zero)

Bases: Algorithm

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

Parameters:
  • G (networkit.Graph) – The graph.

  • tMax (int) – Maximum number of timesteps.

  • transP (float) – Transmission probability.

  • eTime (int) – Exposed time

  • iTime (int) – Infectious time.

  • zero (int) – Starting node.

getData()

Returns a pandas object, containing the simulation data Only valid after run() is called.

Returns:

The simulation data.

Return type:

pandas.DataFrame