A Generalized Configuration Model with Degree Correlations