Analysis of networks via the sparse β ‐model