update graph.cs