This static method computes the branching factor for a search
in which num_expanded nodes were expanded, and a
solution at the given depth was discovered.
Expands this node, in other words, computes all of the nodes
immediately reachable from this node according to the rules of
the puzzle and returns them as an array of nodes.