Ejemplo n.º 1
0
  public void flip() {
    Task tmp = v;
    this.w.addEdge(this);
    this.v.removeEdge(this);

    this.v = w;
    this.w = tmp;
    w.addPredecessor();
    v.removePredecessor();
  }