We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e22998 commit 93dd294Copy full SHA for 93dd294
src/maxback/_order.js
@@ -1,5 +1,5 @@
1
import {attr, decreasing} from '@aureooms/js-compare';
2
-import {PairingHeap} from '@aureooms/js-pairing-heap';
+import {PairingHeap as Heap} from '@aureooms/js-pairing-heap';
3
4
/**
5
* Lists the vertices of an undirected unweighted connected loopless multigraph
@@ -9,7 +9,7 @@ import {PairingHeap} from '@aureooms/js-pairing-heap';
9
* @returns {Iterable} The vertices of G in max-back order.
10
*/
11
export default function* _order(G) {
12
- const heap = new PairingHeap(attr(decreasing, 'weight'));
+ const heap = new Heap(attr(decreasing, 'weight'));
13
const refs = new Map();
14
15
for (const v of G.keys()) refs.set(v, heap.push({weight: 0, vertex: v}));
0 commit comments