Update Graph Class