Exemple #1
0
 public PairingHeap(IEnumerable <T> items, IComparer <T> comparer, IHeapNodeFactory nodeFactory)
     : this(items, ConvertComparer(comparer), nodeFactory)
 {
 }
Exemple #2
0
 public PairingHeap(IEnumerable <T> items, Func <T, T, bool> compareFn, IHeapNodeFactory nodeFactory)
 {
     _compare     = compareFn;
     _nodeFactory = nodeFactory;
     AddItems(items);
 }