  We consider a Dirac operator with constant magnetic field defined on a
half-plane with boundary conditions that interpolate between infinite mass and
zigzag. By a detailed study of the energy dispersion curves we show that the
infinite mass case generically captures the profile of these curves, which
undergoes a continuous pointwise deformation into the topologically different
zigzag profile. Moreover, these results are applied to the bulk-edge
correspondence. In particular, by means of a counterexample, we show that this
correspondence does not always hold true in the zigzag case.
