Skip to content

About

A visualization of course prerequisite networks at UofT, powered by web scraping.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UofT-Course-Networks

Intro

This is an independent research project exploring the structure of the University of Toronto's academic curriculum for the 2026–2027 academic year through graph theory & network science.

Inspired by Pavlos Stavrinides and Konstantin Zuev's work on Course-Prerequisite Networks (hereafter referred to as CPNs), this project aims to reproduce and extend the original research using course data scraped from UofT's academic calendars across all three campuses and various academic divisions.

Process

  1. Scrape all course information, including code, name, prereq, exclusion, department_name, campus, source, and source_url.

For instance, take our notorious pure math course, MAT158H1. The corresponding JSON looks like this:

{
    "code": "MAT158H1",
    "name": "Analysis 1A",
    "prereq": "High school calculus",
    "exclusion": "MAT157Y1 / MAT157Y5 / MAT157H5",
    "department_name": "Department of Mathematics",
    "campus": "St. George",
    "source": "artsci",
    "source_url": "https://artsci.calendar.utoronto.ca/search-courses?page=103"
}
  1. Model and visualize CPNs using Gephi and conduct statistical analysis.
  2. Write something interesting.

Data Sources

Finding

1.1 Code Pattern
  1. UTSG course e.g. MAT158H1 -> [A-Z]{3}\d{3}[HY][10] ( Exception: APS299Y0 at Engineering )
  2. UTM course e.g. MAT137H5 -> [A-Z]{3}\d{3}[HY]5
  3. UTSC course e.g. MATA31H3 -> [A-Z]{4}\d{2}[HY]3
  4. SGS e.g. STA4518H -> [A-Z]{3}\d{4}[HY]

Thus, in general, the regular expression of all course code should be:

pattern = {
    r'\b(?:[A-Z]{3}\d{3}[HY][015]|[A-Z]{4}\d{2}[HY]3|[A-Z]{3}\d{4}[HY])\b'
}

Reference

  1. Course-Prerequisite Networks for Analyzing and Understanding Academic Curricula

About

A visualization of course prerequisite networks at UofT, powered by web scraping.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages