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