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();
  }
Ejemplo n.º 2
0
 Edge(Task v, Task w) {
   this.v = v;
   this.w = w;
   w.addPredecessor();
 }