update graph_t