• Lectures: are on Tuesday/Thursday 3:00-4:20pm in person in the NVIDIA Auditorium.
  • Lecture Videos: are available on Canvas for all the enrolled Stanford students.
  • Public resources: The lecture slides and assignments will be posted online as the course progresses. We are happy for anyone to use these resources, but we cannot grade the work of any students who are not officially enrolled in the class.
  • Contact: Students should ask all course-related questions on Ed (accessible from Canvas), where you will also find announcements. For external inquiries, personal matters, or in emergencies, you can email us at cs224w-aut2324-staff@lists.stanford.edu.
  • Academic accommodations: If you need an academic accommodation based on a disability, you should initiate the request with the Office of Accessible Education (OAE). The OAE will evaluate the request, recommend accommodations, and prepare a letter for the teaching staff. Once you receive the letter, send it to our staff email address. Students should contact the OAE as soon as possible since timely notice is needed to coordinate accommodations.


What is this course about?

Complex data can be represented as a graph of relationships between objects. Such networks are a fundamental tool for modeling social, technological, and biological systems. This course focuses on the computational, algorithmic, and modeling challenges specific to the analysis of massive graphs. By means of studying the underlying graph structure and its features, students are introduced to machine learning techniques and data mining tools apt to reveal insights on a variety of networks.
Topics include: representation learning and Graph Neural Networks; algorithms for the World Wide Web; reasoning over Knowledge Graphs; influence maximization; disease outbreak detection, social network analysis.

Previous Offerings

You can access slides and project reports of previous versions of the course on our archived websites: CS224W: Winter 2023 / CS224W: Fall 2021 / CS224W: Winter 2021 / CS224W: Fall 2019 / CS224W: Fall 2018 / CS224W: Fall 2017 / CS224W: Fall 2016 / CS224W: Fall 2015 / CS224W: Fall 2014 / CS224W: Fall 2013 / CS224W: Fall 2012 / CS224W: Fall 2011 / CS224W: Fall 2010


Students are expected to have the following background:

  • Knowledge of basic computer science principles, sufficient to write a reasonably non-trivial computer program (e.g., CS107 or CS145 or equivalent are recommended)
  • Familiarity with the basic probability theory (CS109 or Stat116 are sufficient but not necessary)
  • Familiarity with the basic linear algebra (any one of Math 51, Math 103, Math 113, or CS 205 would be much more than necessary)

The recitation sessions in the first weeks of the class will give an overview of the expected background.

Course Materials

Notes and reading assignments will be posted periodically on the course Web site. The following books are recommended as optional reading:


Lecture slides will be posted here shortly before each lecture.

This schedule is subject to change. All assignment deadlines are at 11:59pm PT.

Date Description Optional Readings Events Deadlines
Tue, 9/26 1. Introduction
Thu, 9/28 2. Node embeddings
Colab 0, Colab 1 out
Tue, 10/3 3. Graph neural networks
Thu, 10/5 4. A general perspective on GNNs
Homework 1 out LaTeX template
Tue, 10/10 5. GNN augmentation and training
Thu, 10/12 6. Theory of GNNs
Colab 2 out
Tue, 10/17 7. Heterogenous graphs
Colab 1 due
Thu, 10/19 8. Knowledge graphs
Homework 2 out LaTeX template Homework 1 due
Tue, 10/24 9. Reasoning over knowledge graphs
Project Proposal due
Thu, 10/26 10. Fast neural subgraph matching
Colab 3 out Colab 2 due
Tue, 10/31 11. GNNs for recommenders
Thu, 11/2 12. Deep generative models for graphs
Homework 3 out LaTeX template Homework 2 due
Thu, 11/9 13. Advanced topics in GNNs
Colab 4 out Colab 3 due
Project Milestone due
Tue, 11/14 14. Graph Transformers
Thu, 11/16 15. Scaling to large graphs
Colab 5 out Homework 3 due
Tue, 11/21 BREAK
Tue, 11/23 BREAK
Tue, 11/28 16. SNAP Lectures
Wed, 11/29 Exam
11/29 5 PM - 12/1 5 AM
Thu, 11/30 17. Link Prediction and Causality
Colab 4 due
Tue, 12/5 18. Algorithmic reasoning with GNNs
Colab 5 due
Thu, 12/7 19. Conclusion
Thu, 12/14 Project Report due