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