docs: final void ensureNodeIndex(int nodeIndex) {
          if (!initialized)
              throw new AssertionError("The graph has not yet been initialized.");
  
          if (nodeIndex < nodeCount)
              return;
  
          long oldNodes = nodeCount;
          nodeCount = nodeIndex + 1;
          boolean capacityIncreased = nodes.ensureCapacity((long) nodeCount * nodeEntryBytes);
          if (capacityIncreased) {
              long newBytesCapacity = nodes.getCapacity();
              initNodeRefs(oldNodes * nodeEntryBytes, newBytesCapacity);
          }
      }