code: public void connectTo(final AbstractJobVertex vertex, final int indexOfOutputGate, final int indexOfInputGate)
  			throws JobGraphDefinitionException {
  		this.connectTo(vertex, null, indexOfOutputGate, indexOfInputGate, DistributionPattern.BIPARTITE);
  	}
docs: Connects the job vertex to the specified job vertex.
  
  @param vertex
  the vertex this vertex should connect to
  @param indexOfOutputGate
  index of the producing task's output gate to be used, <code>-1</code> will determine the next free index
  number
  @param indexOfInputGate
  index of the consuming task's input gate to be used, <code>-1</code> will determine the next free index
  number
  @throws JobGraphDefinitionException
  thrown if the given vertex cannot be connected to <code>vertex</code> in the requested manner