graph update