Denoising and Untangling Graphs Using Degree Priors