a practical introduction to graphical model notation