graph max find update