using System; using System.Collections.Generic; using System.Text; namespace CLab { public class Bdd : IComparable { private Buddy buddy; public Bdd() { buddy = new Buddy(); } public int CompareTo(Bdd obj) { Bdd temp = (Bdd) obj; if (buddy.nodecount(this) < buddy.nodecount(obj)) return -1; else if (buddy.nodecount(this) > buddy.nodecount(obj)) return 1; else return 0; } } }