Goodness of Fit of Logistic Regression Models for Random Graphs