Class PriorityTree<T>
- Namespace
- AlgorithmsSW.PriorityQueue
- Assembly
- AlgorithmsSW.dll
public class PriorityTree<T> : IPriorityQueue<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
PriorityTree<T>
- Implements
-
IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
PriorityTree(IComparer<T>)
public PriorityTree(IComparer<T> comparer)
Parameters
comparer
IComparer<T>
Properties
Count
public int Count { get; }
Property Value
PeekMin
public T PeekMin { get; }
Property Value
- T
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>
An enumerator that can be used to iterate through the collection.
PopMin()
public T PopMin()
Returns
- T
Push(T)
public void Push(T item)
Parameters
item
T
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.