Discrete graphical models and their parameterization