func (h *HeapElement) Compare(b heap.Value) (bool, error) { //used for minheap return h.Value() < b.Value(), nil }
func (n *Node) Compare(b heap.Value) (bool, error) { return n.Value() < b.Value(), nil }