public void addResidualFlowTo(int v, double delta)
	{
		if (v == from) // backward edge
			flow -= delta;
		else if (v == to) // forward edge
			flow += delta;
		throw new IllegalArgumentException();
	}