Changing values of nodes

Jan Pöppel requested to merge jpoeppel:dimensionFix into master

Created by: jpoeppel

This PR adds the function "set_values" to the DiscreteNode class as well as "change_node_values" to the BayesianNetwork class. The former updates the values of a node, updating the dimensions of it's cpt and invalidating it in the process as one cannot assume that the old cpt is still valid. The latter does the same, but will also update the dimensions and invalidates all children of the changed node and should be preferred in general.

Merge request reports