@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering.
16 lines (15 loc) • 347 B
TypeScript
export declare class SortedSet {
items: string[];
hash: {
[key: string]: number;
};
values: {
[key: string]: number;
};
constructor();
add(item: string, value: number): void;
pop(): string | undefined;
isOpen(item: string): boolean;
isClose(item: string): boolean;
isEmpty(): boolean;
}