Model Determination for Discrete Graphical Models