Skip to main content
Module

x/ssds/mod.ts>ArrayHeapPQ#_hasRelation

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

Determines whether the node at the given index has a given relation or not.

If the provided Relation is invalid, will return 'false' by default.

Parameters

index: number

The index whose relation is to be queried.

relation: Relation

The relation to be queried about.

Returns

boolean

'true' if the relation node exists; 'false' otherwise.