apply_vaccination_patterns: Apply Vaccination Patterns

Description Usage Arguments Value Examples

Description

A function that applies different vaccination patterns to a network.

Usage

1
apply_vaccination_patterns(centrality_measures, data, data.size, treatments)

Arguments

centrality_measures

alist of igraph centrality measure

data

An adjacency matrix, possibly directed

data.size

Number of columns in the matrix

treatments

Number of treatments available

Value

List of Lists with all the vaccination vectors [[1]] and the vaccinated matrices [[2]] in the order of the centrality_measures list.

Examples

1
2
mat = matrix(rbinom(10 * 5, 1, 0.3), ncol = 10, nrow = 10)
vaccinatedIndex <- apply_vaccination_patterns(list(igraph::betweenness,igraph::closeness),mat,10,2)

jugdemon/isn_infection documentation built on May 20, 2019, 4:20 a.m.