switch (node.getNodeType()) {
case Node.ELEMENT_NODE:
String name = node.getNodeName();
if (name.equals("cpt")) {
BNNode bbnnode = visitStateNode(node,
BNNode.NodeType.probabilistic);
graph.addVertex(bbnnode);
} else if (name.equals("noisymax")) {
BNNode bbnnode = visitStateNode(node,
BNNode.NodeType.noisymax);
graph.addVertex(bbnnode);
} else if (name.equals("deterministic")) {
BNNode bbnnode = visitStateNode(node,
BNNode.NodeType.deterministic);
graph.addVertex(bbnnode);
} else if (name.equals("utility")) {
BNNode bbnnode = visitStateNode(node,
BNNode.NodeType.utility);
graph.addVertex(bbnnode);
} else if (name.equals("decision")) {
BNNode bbnnode = visitStateNode(node,
BNNode.NodeType.decision);
graph.addVertex(bbnnode);
}