if (node instanceof IRandomVariable) {
potTab = (PotentialTable)((IRandomVariable) node).getProbabilityFunction();
int states = 1;
variables = potTab.variableCount();
// calculate the number of states by multiplying the number of
// states that each father (variables) has. Where variable 0 is the
// node itself. That is why it starts at 1.
/*