nExample (Lauritzen-Spiegelhalter, i.e., junction tree):
BBNGraph g = BBNGraph.load(“netfile”);
g.loadEvidence(“evidenceFile”); // if needed
LS ls = new LS(g);
InferenceResult result = ls.getMarginals();
nVariable result: printable hash table System.out.println(result.toString());
nOther inference classes are invoked in the same way.
nNote: actual inference happens in getMarginals()
nMay want to set some options before it