Phase diagram of the extended Bose–Hubbard model