a node by symbol array. Supplying this instead of G will speed computations.
this.level
The level in which nodes are searched to be merged.
crit
The criterion for the model selection, either AIC or BIC.
verbose
If verbose is TRUE, then the all the information on the merge selection of nodes at each level are printed in the output.
Value
Returns the list of G: resulting APFA and ns: node-symbol array.
Details
The function performs greedy selection at the given level. That is to say, the delta ICs for all nodes pairs at the given level are computed, the pair
leading to the greatest reduction are merged, the delta ICs are recomputed as necessary, and the process continues until no further reduction in IC can be made.