update graph2