interface PriorityQueueOptions<T> {
    allocStep?: number;
    capacity?: number;
    compare?: (a: T, b: T) => boolean;
    elements?: Iterable<T, any, any>;
}

Type Parameters

  • T

Hierarchy

  • HeapOptions<T>
    • PriorityQueueOptions

Properties

allocStep?: number

When the vector overflows, this option determines how big the vector will become.

capacity?: number

This value specifies how much capacity the vector should at least have.

compare?: (a: T, b: T) => boolean
elements?: Iterable<T, any, any>

An iterable that will be consumed to fill the vector.