code: public Node getNode(final int i) {
          if (i < 0 || i >= nodeList.size()) {
              return null;
          }
          return nodeList.get(i);
      }
docs: Return a node by the node index.
  
  @param i A node index
  @return null if the node is not found