Skip to main content
Module

x/ssds/mod.ts>ArrayHeapPQ#_getRelationPriority

Some Specialized Data Structures for Deno.
Latest
method ArrayHeapPQ.prototype._getRelationPriority
import { ArrayHeapPQ } from "https://deno.land/x/ssds@0.2.0/mod.ts";

Gets the priority value of the specified relation.

If the relation is invalid (e.g. does not exist), will return positive infinity for the priority.

Parameters

index: number

The index whose relation's priority is to be queried.

relation: Relation

The relation to be queried about.

Returns

number

The priority value of the specified relation to the given index.