Remove an interval from this graph.

@param i
an interval.
@return true if the graph changed as a result of this operation, false
otherwise.
330223
synchronized boolean removeInterval(Interval i) {
        calcMinDuration = null;
        calcMaxDuration = null;
        calcMinFinish = null;
        calcMaxFinish = null;
        calcMinStart = null;
        calcMaxStart = null;
        shortestDistancesFromTimeZeroSource = null;
        shortestDistancesFromTimeZeroDestination = null;

        if (directedGraph.remove(i.getStart()) != null) {
            if (directedGraph.remove(i.getFinish()) == null) {
                throw new IllegalStateException();
            }
            intervals.remove(i);
            return true;
        } else {
            return false;
        }
    }
192500
public void removeVertex(int i) {
        this.x.remove(i);
        this.y.remove(i);
        this.z.remove(i);
        this.colors.remove(i);
        calcG();
    }
566181
public boolean remove(Node<E> e) {

        mPutLock.lock();
        mPollLock.lock();
        try {
            if (e == null)
                return false;
    
            if (e.mRemoved)
                return false;
    
            if (mSize.get() == 0)
                return false;

            if (e == mTail) {
                removeTail();
                return true;
            }
            if (e == mHead.mNext) {
                removeHead();
                return true;
            }
            if (mSize.get() < 3)
                return false;

            if (e.mPrev == null || e.mNext == null)
                return false;

            e.mPrev.mNext = e.mNext;
            e.mNext.mPrev = e.mPrev;
            e.mRemoved = true;
            mSize.decrementAndGet();
            mNodePool.returnNode(e);
            return true;
        }
        finally {
            mPollLock.unlock();
            mPutLock.unlock();
        }
    }
522663
public function removeAt(int $i)
    {
        if (count($this->list) >= $i) {
            throw new \OutOfBoundsException();
        }

        unset($this->list[$i]);
    }
1336669
private final boolean cvc(int i) {
        if (i < 2 || !cons(i) || cons(i-1) || !cons(i-2))
            return false;
        char ch = sb.charAt(i);
        return !(ch == 'w' || ch == 'x' || ch == 'y');
    }
886617
public void set(int i, double value) {
        switch (i) {
            case 0: {
                x = value;
                break;
            }
            case 1: {
                y = value;
                break;
            }
            case 2: {
                z = value;
                break;
            }
            default: {
                throw new ArrayIndexOutOfBoundsException(i);
            }
        }
    }
266832
synchronized boolean removeRelation(Interval i1, Interval i2) {
        if (i1 == i2 || !containsInterval(i1) || !containsInterval(i2)) {
            return false;
        }

        Object i1Start = i1.getStart();
        Object i1Finish = i1.getFinish();
        Object i2Start = i2.getStart();
        Object i2Finish = i2.getFinish();

        directedGraph.setEdge(i1Start, i2Start, null);
        directedGraph.setEdge(i1Start, i2Finish, null);
        directedGraph.setEdge(i2Start, i1Start, null);
        directedGraph.setEdge(i2Start, i1Finish, null);
        directedGraph.setEdge(i1Finish, i2Start, null);
        directedGraph.setEdge(i1Finish, i2Finish, null);
        directedGraph.setEdge(i2Finish, i1Start, null);
        directedGraph.setEdge(i2Finish, i1Finish, null);

        calcMinDuration = null;
        calcMaxDuration = null;
        calcMinFinish = null;
        calcMaxFinish = null;
        calcMinStart = null;
        calcMaxStart = null;
        shortestDistancesFromTimeZeroSource = null;
        shortestDistancesFromTimeZeroDestination = null;

        return true;
    }
807381
public synchronized boolean removeInstance(T element) {
		if (end == start) return false;
		if (end == -1) {
			for (int i = array.length - 1; i >= 0; --i)
				if (array[i] == element) {
					removeAt(i);
					return true;
				}
			return false;
		}
		if (end < start) {
			for (int i = array.length - 1; i >= start; --i)
				if (array[i] == element) {
					removeAt(i);
					return true;
				}
			for (int i = 0; i < end; ++i)
				if (array[i] == element) {
					removeAt(i);
					return true;
				}
			return false;
		}
		for (int i = start; i < end; ++i)
			if (array[i] == element) {
				removeAt(i);
				return true;
			}
		return false;
	}
845890
public void remove( int index )
	{
		if( (index < 0) || (index >= size) )
		{
			throw new IndexOutOfBoundsException();
		}

		--size;
		for( int i = index; i < size; ++i )
		{
			array[i] = array[i + 1];
		}

		array[size] = null;
	}
1342002
public boolean add(int i) {
      boolean wasSet = bitSet.get(i);
      if (!wasSet) {
         bitSet.set(i);
         return true;
      }
      return false;
   }
1132378
public Interval<T> getSuperInterval(Interval<T> i) {
        for (Interval<T> item : intervals) {
            if (item.contains(i)) {
                return item;
            }
        }
        return null;
    }
31251
public boolean isIntervalComparable(Interval<E> other)
  {
    int flags = getRelationFlags(other);
    if (checkMultipleBitSet(flags & REL_FLAGS_INTERVAL_UNKNOWN)) {
      return false;
    }
    return checkFlagSet(flags, REL_FLAGS_INTERVAL_BEFORE) || checkFlagSet(flags, REL_FLAGS_INTERVAL_AFTER);
  }
923205
public boolean isInhibition(Control ctrl)
	{
		return ctrl.getControlType() != null && ctrl.getControlType().toString().startsWith("I");
	}
663323
public boolean removeTaskByTaskId(String taskId, boolean isInterrupt) {
        ScheduledFuture<?> future = runningTask.get(taskId);
        boolean flag = future.cancel(isInterrupt);
        if (flag) {
            runningTask.remove(taskId);
        }
        return flag;
    }
854017
@Override
    public boolean remove(Object o)
    {
        int idx = indexOf((E) o);
        if (idx >= 0)
        {
            list.remove(idx);
            return true;
        }
        return false;
    }
817888
protected boolean removeSegment(int segmentIndex) {
		if ((this.values == null) || (segmentIndex < 0)
				|| (segmentIndex >= this.values.length - 1)) {
			return false;
		}

		if (this.values.length == 2) {
			this.values = null;
			this.size = 0;
		} else {
			final int count = this.values[segmentIndex + 1] - this.values[segmentIndex] + 1;
			final int[] newTab = new int[this.values.length - 2];
			System.arraycopy(this.values, 0, newTab, 0, segmentIndex);
			System.arraycopy(this.values, segmentIndex + 2, newTab, segmentIndex, this.values.length - segmentIndex);
			this.values = newTab;
			this.size -= count;
		}

		return true;
	}
1131184
public void remove( int index ) {
		T removed = data[index];
		for( int i = index+1; i < size; i++ ) {
			data[i-1] = data[i];
		}
		data[size-1] = removed;
		size--;
	}