This version of the apply method allows for convenient SolutionTree
creation when given the result of a
com.tubros.constraints.core.internal.Frontier dequeue
operation.
This apply method is provided to enable functional-style creation and
is defined in terms of the empty
method.
The fromFrontier method creates a SolutionTree based on the next NodeType provided by the frontier.