Code from Data Mining The Social Networks meetup.