protected List<Node> createDiscreteVariableList(DiscreteVariableAnalysis variableAnalysis){
  List<Node> nodes=new ArrayList<>(variableAnalysis.getNumOfCols());
  DiscreteVarInfo[] variables=variableAnalysis.getDiscreteVarInfos();
  for (  DiscreteVarInfo variable : variables) {
    if (variable != null) {
      nodes.add(new DiscreteVariable(variable.getName(),variable.getCategories()));
    }
  }
  return nodes;
}

protected List < Node > createDiscreteVariableList ( DiscreteVariableAnalysis variableAnalysis ) { List < Node > nodes = new ArrayList < > ( variableAnalysis . getNumOfCols ( ) ) ; DiscreteVarInfo [ ] variables = variableAnalysis . getDiscreteVarInfos ( ) ; for ( DiscreteVarInfo variable : variables ) { if ( variable != null ) { nodes . add ( new DiscreteVariable ( variable . getName ( ) , variable . getCategories ( ) ) ) ; } } return nodes ; }
create a list of nodes from variable analysis results .
