Update sreach graphs with gradient.