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