Graphical model pdf