In this paper we build and analyze networks using the statistical and programmingenvironment R and the igraph package. We investigate random, small-world, and scale-freenetworks and test a standard problem of connectivity on a random graph. We then develop amethod to study how vaccination can alter the structure of a disease transmission network.We also discuss a variety of other uses for networks in biology.