  We directly detect the ergodicity breaking in a lattice glass model by a
numerical simulation. The obtained results nicely agree with those by the
cavity method that the model on a regular random graph exhibits a dynamical
transition with the ergodicity breaking at an occupation density. The present
method invented for a numerical detection of the ergodicity breaking is
applicable to glassy systems in finite dimensions.
