question: 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 ; }
target:  Create a list of Nodes from variable analysis results.