Update Graph.scala