Update max y for contractions graph