Description | IONTW Commands |
|
Report number of susceptibles | count turtles with [susceptible?] |
Report number of latents | count turtles with [latent?] |
Report number of infectious | count turtles with [infectious?] |
Report number of removed | count turtles with [removed?] |
Report mean degree | mean [count link-neighbors] of turtles |
Report time | ticks |
Change label for nodes with degree 3 | ask turtles with [count link-neighbors = 3][set label "label"] |
Create new network | new-network |
Make one individual susceptible | ask n-of 1 turtles [become-susceptible] |
Make one individual latent | ask n-of 1 turtles [become-latent] |
Make one individual infectious | ask n-of 1 turtles [become-infectious] |
Make one individual removed | ask n-of 1 turtles [become-removed] |
Make one susceptible removed | ask n-of 1 turtles with [susceptible?][become-removed] |
Vaccinate individuals from file | ask turtles-from-file "vaccinate.txt" [become-removed] |
Infect individuals from file | ask turtles-from-file "infect.txt" [become-infectious] |
Remove individual with degree > 6 | ask n-of 1 turtles with [count link-neighbors > 6][become-removed] |
Remove everyone with degree > 6 | ask turtles with [count link-neighbors > 6][become-removed] |