update Graphs