"u1 ~ Uniform 0.0 10.0\n" +
"u2 ~ Uniform 5.0 7.0\n";
public void testSliceInFg () throws IOException
{
ModelReader reader = new ModelReader ();
FactorGraph fg = reader.readModel (new BufferedReader (new StringReader (mdlstr)));
Variable u1 = fg.findVariable ("u1");
Variable u2 = fg.findVariable ("u2");
Assignment assn = new Assignment (new Variable[] { u1, u2 }, new double[] { 6.0, 6.0 });
FactorGraph fg2 = (FactorGraph) fg.slice (assn);