pub fn simulate_sis(
adjacency: &AdjList,
num_nodes: usize,
initial_infected: &[usize],
beta: f64,
gamma: f64,
max_steps: usize,
) -> Result<SimulationResult>Expand description
Simulate one run of the SIS epidemic model.
Unlike SIR, recovered nodes return to the susceptible state, so endemic
equilibria are possible. Simulation terminates when no infected nodes
remain or after max_steps steps.