BayesianEvent `public boolean hasChildren()` returns the value of `hasParents()`. I believe it should be `return this.children.size();` https://github.com/encog/encog-java-core/blob/5b9d9a8c8b4299b49ef574f2743d21d5a9438a6c/src/main/java/org/encog/ml/bayesian/BayesianEvent.java#L166