public void addOutgoingEdge(Vertex<T> to, int cost)
   {
      Edge<T> out = new Edge<T>(this, to, cost);
      outgoingEdges.add(out);
   }
public void addOutgoingEdge ( Vertex < T > to , int cost ) { Edge < T > out = new Edge < T > ( this , to , cost ) ; outgoingEdges . add ( out ) ; }
Add an outgoing edge ending at to.

@param to - the destination vertex
@param cost the edge cost