Factor tbl2 = new TableFactor (vars2, vals2);
FactorGraph fg = new FactorGraph ();
fg.multiplyBy (tbl1);
fg.multiplyBy (tbl2);
System.out.println (fg.dumpToString ());
GibbsSampler gs = new GibbsSampler (new Randoms (324123), 10);
gs.sample (fg, 10); // assert no exception
}