Updated weights of of graph