CS 112 friend graph