update graph example