Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MinHeap internal #695

Merged
merged 1 commit into from
Apr 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions dotnet/src/SemanticKernel/Memory/Collections/MinHeap.cs
Expand Up @@ -11,7 +11,7 @@ namespace Microsoft.SemanticKernel.Memory.Collections;
/// Implements the classic 'heap' data structure. By default, the item with the lowest value is at the top of the heap.
/// </summary>
/// <typeparam name="T">Data type.</typeparam>
public class MinHeap<T> : IEnumerable<T> where T : IComparable<T>
internal sealed class MinHeap<T> : IEnumerable<T> where T : IComparable<T>
{
private const int DefaultCapacity = 7;
private const int MinCapacity = 0;
Expand Down Expand Up @@ -219,7 +219,7 @@ private void DownHeap(int startAt)
items[i] = item;
}

public virtual IEnumerator<T> GetEnumerator()
public IEnumerator<T> GetEnumerator()
{
// The 0'th item in the queue is a sentinel. i is 1 based.
for (int i = 1; i <= this._count; ++i)
Expand Down