A Semiparametric Two-Sample Hypothesis Testing Problem for Random Graphs