9: Social Networks

Data Wrangling and Visualization

Author

Prof. Jack Reilly

Published

Fall 2026

Introduction

For this assignment, you will draw your own social network using R and iGraph. (It is OK if it is a relatively simple network!)

Assignment

Please follow these steps:

  1. Identify your chosen network. This can be any network you can think of - from politics, economics, public administration, social life, pop culture, literature, science, etc. It just has to be clear on two things:
    • What are the nodes of the network?
    • What constitutes a tie (edge) between nodes of the network?
  2. Encode your network into a form readable by R and iGraph. Likely, this will be an adjacency matrix, but could also be an edge list, an adjacency list/node list, or an affiliation matrix.
  3. Read your network into R and into the iGraph package.
  4. Plot the network graph.
  5. Use visualization features to make your network graph visually compelling. Highlight the features of the network you most want to highlight.
  6. Write a short summary (a few sentences is fine) of what you notice about your network.

Submission

Your completed assignment should link a GitHub repository containing all materials for the assignment. Include (at least) 4 things in the repo:

  1. Your R script(s).
  2. A quarto file that addresses or answers the steps above and includes your graphics. Your quarto file can include your R code or your R code can remain separate in your R scripts, with the quarto file reading in figures from the project directory.
  3. A compiled quarto file, as a PDF, that includes your network graphs.
  4. Your data (adjacency matrix or edgelist, nodelist) in a format readable by R. (If you read data directly from a web source in your script, you can skip this step.)

Make sure that your quarto writeup includes a clear definition of your network (nodes and edges) as well as a summary description of what is particularly noteworthy about the features of your network. It should also document the source of the data, and note steps done to manage the data (if any) before your R script(s) took over.

NoteImportant

To submit your assignment to Blackboard, submit a clickable link to your GitHub repo as well as a PDF that contains your visualizations.

NoteAI Use

AI use is allowed on this and every problem set that is graded check/no check in this class. You should disclose any AI use as a matter of standard professional ethics, but you will not be evaluated on whether or not you used AI.

I encourage you, however, to use AI intelligently: use it like a teaching assistant to help you understand the material, not as a bot to automatically solve the problem set for you. Remember that you will not have access to a chatbot during in-class exams, so the problem sets are your chance to practice.