import { ArrayHeapPQ } from "https://deno.land/x/ssds@0.2.0/mod.ts";
Determines if the node should be swapped with its relation or not.
The method will return 'true' if the relation exists and comparison of the priorities shows that the two should be swapped.