Text this: Statistical Inference of Random Graphs With a Surrogate Likelihood Function