Libraries‎ > ‎Epidemics‎ > ‎

vaccinate most highly connected v2

BehaviourComposer: ignore everything before this.
Begin micro-behaviour
Begin description:
This vaccinates those individuals with the highest number of acquaintances.
End description

Vaccinate most highly connected individuals

Begin NetLogo code:
substitute-text-area-for number-vaccinated the-fraction-vaccinated * length population-sortedlet population-sorted     sort-by more-link-neighbors all-susceptiblesrepeat round (number-vaccinated)       [let super-node first population-sorted        set population-sorted but-first population-sorted        add-behaviours-to super-node                            list-of-micro-behaviours "Intervention behaviours" []]
End NetLogo code

Variants

Edit the text area to change the number of individuals vaccinated.

Related behaviours

This behaviour replies upon the report more-link-neighbors behaviour being part of the model.

Schedule non-targeted vaccination does not target the highly connected individuals.

How this works

This sorts the entire population by the number of links and adds the Intervention behaviours to the number specified in the text area.

History

This was implemented by Ken Kahn on 3 February 2011.

BehaviourComposer: ignore everything after this.