stateRemoval2: a function for processing the bayesian network. It implements another approach from the described in stateRemoval function.
Useful links