code: public static <S, N extends Node<?,S,N>>  List<S> recoverStatePath(N node){
          List<S> states = new LinkedList<S>();
          for(N n : node.path()){
              states.add(n.state());
          }
          return states;
      }
docs: Returns a path with all the states of the path.
  
  @param <S> type of the state.
  @param <N> type of the node.
  @return a list with the states of the path, from the initial state
  to the state of the provided node ({@link es.usc.citius.hipster.model.Node#state()}).