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; } }
public FriendlyConstraint(Vertex tail, Vertex head) : base(tail, head) { }
public EnemyConstraint(Vertex tail, Vertex head) : base(tail, head) { }
public Boolean Equals(Vertex x) { return (this.idx == x.idx); }