The coursework for CS224W will consist of:


The idea for the homework is to practice some skills that will be required for the project, and help you understand the concepts introduced in the lectures. The homework will contain mostly written questions. Specifically, we will be working both on mathematical models of networks and analyzing real network data, for example, find out the differences between node embedding approaches from a theoretical view. Second, we will also work with network datasets to get a flavor of types of questions one asks in network analysis. For example, using citation data, create a small citation network, compute degree distributions, clustering coefficients, node centralities, etc.

Questions: We try very hard to make questions unambiguous, but some ambiguities may remain. Ask (i.e., post a question on Ed) if confused, or state your assumptions explicitly. Reasonable assumptions will be accepted in case of ambiguous questions.

Assignment submission: All students (SCPD and non-SCPD) submit their assignments via Gradescope by 11:59PM PT on the due date. (We will allow a short 15 minute grace period, but beyond that and late periods, all deadlines are final.) See FAQ and each homework handout for submission instructions.

Please make sure to tag each part correctly on Gradescope so it is easier for us to grade. There will be a 1 point deduction for each mistagged page.

Students also need to upload their code if needed on Gradescope. Put all the code for a single question into a single compressed file and upload it.

Regrade policy: We take great care to ensure that grading is fair and consistent. Since we will always use the same grading procedure, any grades you receive are unlikely to change significantly. However, if you feel that your work deserves a regrade, please submit a request on GradeScope within one week of receiving your grade.

Before requesting a regrade, please prepare a clear and concise argument for your stance by doing the following:

  • Re-read relevant sections of papers, the notes, and the text (where applicable).
  • Read carefully the comments we provide on your work and consider their meaning.
And then submit your regrade request via GradeScope.

We reserve the right to regrade the entirety of any homework for which any regrade is requested.

For grading questions, please talk to us during office hours.


There are a total of 5 Colabs during the quarter (plus Colab 0 to get you familiar with the setup, but no hand-in required). Contrary to homework, the Colabs typically require you to write some code on the tasks relevant to course materials. They are intended to get your hands dirty, and understand better the power of graphs (especially GNN) through practice, also to prepare you ready for the final project.


We will have one take-home, open-book exam, which will cover material from Lectures 1-15.

  • The exam will be available for 24 hours on Gradescope, from Nov 19, 10:00AM PT to Nov 20, 09:59AM PT. You will need to find a 2-hour consecutive time window within the 24 hours to complete the exam.
  • The exam will be administered on Gradescope. You can choose to typeset your answers in LaTeX or upload images.
  • The exam will be open book; you can use any reference material you want.
  • On the day of the exam, the Ed forum will be disabled. If you have questions, you will be able to make private posts visible by instructors.
The make-up exam will be held two days prior, from Nov 17, 10:00AM PT to Nov 18, 09:59AM PT. Again, you will need to find a 2-hour consecutive time window to complete the exam; the same instructions above apply. You may only take one of the two exams, and please do not share or discuss the exam with anyone after you have taken it.

Honor Code and Submission Policy

The following paragraphs apply both to any material submitted for this course (homework, project proposal, project milestone, and so on).

Honor code: We strongly encourage students to form study groups. Students may discuss and work on homework problems in groups. However, each student must write down the solutions independently, and without referring to written notes from the joint session. In other words, each student must understand the solution well enough in order to reconstruct it by him/herself. In addition, each student should write on the problem set the group of people with whom she/he collaborated.

Further, since we occasionally reuse problem set questions from previous years, we expect students not to copy, refer to, or look at the solutions in preparing their answers. It is an honor code violation to intentionally refer to a previous year's solutions or code. This applies both to the official solutions and to solutions that you or someone else may have written up in a previous year.

Finally, we consider it an Honor Code Violation to post your homework solutions to a place where it is easy for other students to access it. This includes uploading your solutions to publicly-viewable repositories like on GitHub.

The standard penalty for a first offense includes a one-quarter suspension from the University and 40 hours of community service. And the standard penalty for multiple violations (e.g., cheating more than once in the same course) is a three-quarter suspension and 40 or more hours of community service. Stanford Office of Community Standards contains more information.

Late submissions: Each student will have a total of two late periods to use for homework/colabs and project proposal (NOT the final project report, for which the deadline is strict.) One late period expires midnight on the day before the next class: this means that if the assignment is due on Thursday then the first late period expires at 11:59pm on the next Monday. Once late periods are exhausted, any write-up turned in late will be penalized 50% per late period. However, no write-up (homework and project related documents) will be accepted more than one late period after its due date.

Please start submitting to Gradescope 30 minutes before the deadline. In previous quarters, Gradescope has been very unresponsive at midnight. In case you cannot successfully submit before 11:59pm, we will offer a 15 minute grace period to submit your assignment. This is a hard deadline and we will accept no assignments after this time.


The grading will be based on the following weighting scheme:

  • 25% on 3 Homework (8.3% each)
  • 20% on 5 Colabs (4% each)
  • 35% on the Exam
  • 20% on the Final Project
  • Course participation (Ed Discussion, code contributions, etc.) as extra credit