You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -133,6 +133,11 @@ public FibonacciPriorityQueue(IEnumerable<T> collection, Comparison<QueueElement
133
133
#region Public properties
134
134
/// <inheritdoc/>
135
135
publicintCount=>_count;
136
+
137
+
/// <summary>
138
+
/// Gets the type of this priority queue
139
+
/// </summary>
140
+
publicPriorityQueueTypeType{get;}
136
141
#endregion
137
142
138
143
#region Public methods
@@ -155,10 +160,10 @@ public bool Contains(T element)
155
160
}
156
161
157
162
/// <summary>
158
-
///
163
+
/// Sets a new priority for the specified node. The new value has to be lower if the <see cref="Type"/> is <see cref="PriorityQueueType.Maximum"/> or higher if the <see cref="Type"/> is <see cref="PriorityQueueType.Minimum"/>
159
164
/// </summary>
160
-
/// <param name="node"></param>
161
-
/// <param name="newPriority"></param>
165
+
/// <param name="node"><see cref="Node"/> to be modified</param>
166
+
/// <param name="newPriority">A finite value representing the new priority</param>
162
167
publicvoidDecreaseKey(Nodenode,doublenewPriority)
163
168
{
164
169
if(double.IsNaN(newPriority))
@@ -281,7 +286,7 @@ public void Enqueue(T element)
0 commit comments