Graphical Models for Peptide Identification of Tandem Mass Spectra