Have a method reorder(List<Variable> newOrderOfVariables) in class Potential
Issue #449
new
The class DiscretePotentialOperations has different static methods named “reorder”, which similar signature having two arguments: a potential and a list of variables. The difference between the different versions of “reorder” methods is the class of potential of the first argument (AugmentedTablePotential, TablePotential, UnivariateDistrPotential, ExactDistrPotential). Having an abstract method reorder(List<Variable> newOrderOfVariables) in class Potential, implemented by the different classes that inherit from Potential, would avoid certain casts in the code and would help simplify the code.