On the identification of discrete graphical models with hidden nodes