Exact learning curves for Gaussian process regression on large random graphs