Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 551 Bytes
namespace DataStructures.BinaryHeap
{
using System;
using EnsureThat;
public class BinaryHeapNode<T> : IDynamicSetNode<T>
where T : IComparable<T>
{
internal BinaryHeapNode(T value, BinaryHeap<T> set)
{
EnsureArg.IsNotNull(set, nameof(set));
this.Value = value;
this.Set = set;
}
public T Value { get; }
public BinaryHeap<T> Set { get; private set; }
internal void RemoveFromList()
{
this.Set = null;
}
}
}
You can’t perform that action at this time.