Operations for Learning with Graphical Models