Exemple #1
0
 public Arc(Vertex tail, Vertex head)
 {
     if (head == tail) {
         Console.WriteLine("No loops allowed!");
         this.head = this.tail = null;
     }
     else {
         this.head = head;
         this.tail = tail;
     }
 }
Exemple #2
0
 public FriendlyConstraint(Vertex tail, Vertex head)
     : base(tail, head)
 {
 }
Exemple #3
0
 public EnemyConstraint(Vertex tail, Vertex head)
     : base(tail, head)
 {
 }
Exemple #4
0
 public Boolean Equals(Vertex x)
 {
     return (this.idx == x.idx);
 }