Fixed a bug in factor graph ipython notebook
Merge pull request #2189 from Jiaolong/FGM_notebook

Fixed a bug in FGM notebook