public void set(APElement label, T to) { if (label.getBitSet() >= _arraySize) { throw new IndexOutOfBoundsException(""); //IndexOutOfBoundsException, } _storage[label.getBitSet()] = to; }
/** Get the target of the edge labeled with label*/ public T get(APElement label) { if (label.getBitSet() >= _arraySize) { throw new IndexOutOfBoundsException(""); //, } return(_storage[label.getBitSet()]); }