Spectra of adjacency and Laplacian matrices of inhomogeneous Erdős–Rényi random graphs