PotentialTable pot = null;
if(node.getType() == Node.PROBABILISTIC_NODE_TYPE){
ProbabilisticNode pn = (ProbabilisticNode) node;
pot = pn.getPotentialTable();
} else if(node.getType() == Node.CONTINUOUS_NODE_TYPE){
ContinuousNode cn = (ContinuousNode) node;
//pot = cn
}
coord[0]=1;
if(numOfParents>0){
for(Node n:node.getParents())