Sparse graphs using exchangeable random measures