コード例 #1
0
        public int Insert(T item, float utility)
        {
            var hn = new HeapNode <T>();

            hn.t   = item;
            hn.key = utility;
            return(heap.insert(hn));
        }
コード例 #2
0
 public int CompareTo(HeapNode <T> other)
 {
     return(key.CompareTo(other.key));
 }