7172737475767778798081
// deb.doAll(); // // inference.initialize(network, new JoinTreeCompiler()); inference.run(); Set<BNNode> nodes = network.vertexSet(); for (BNNode node : nodes) { System.out.println( node.getName() + ":\n" + node.getMarginal().toString() + "\n");
107108109110111112113114115116117
HashMap<String, Object> jgraphVertices = new HashMap<String, Object>(); try { for(Object o : g.vertexSet()) { Object o1 = graph.insertVertex(parent,((Node)o).m_name, ((Node)o).m_name, 20, 20, 80, 30); jgraphVertices.put(((Node)o).m_name, o1); }