finishing undirected graphical models 8494814