Skip to content
Graphviz (DOT) templates

Medicine — SIR Epidemic Model

Susceptible, infected and recovered compartments.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph SIR {
  rankdir=LR;
  node [shape=box, style=rounded];
  "Susceptible" -> "Infected" [label="infection (beta)"];
  "Infected" -> "Recovered" [label="recovery (gamma)"];
  "Recovered" -> "Susceptible" [label="waning immunity", style=dashed];
}