MRF CODE - UGM - Undirected Graphical Model