Skip to content

Commit 93dd294

Browse files
🎨 refactor: Import PairingHeap as unspecific Heap for style.
1 parent 4e22998 commit 93dd294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/maxback/_order.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {attr, decreasing} from '@aureooms/js-compare';
2-
import {PairingHeap} from '@aureooms/js-pairing-heap';
2+
import {PairingHeap as Heap} from '@aureooms/js-pairing-heap';
33

44
/**
55
* Lists the vertices of an undirected unweighted connected loopless multigraph
@@ -9,7 +9,7 @@ import {PairingHeap} from '@aureooms/js-pairing-heap';
99
* @returns {Iterable} The vertices of G in max-back order.
1010
*/
1111
export default function* _order(G) {
12-
const heap = new PairingHeap(attr(decreasing, 'weight'));
12+
const heap = new Heap(attr(decreasing, 'weight'));
1313
const refs = new Map();
1414

1515
for (const v of G.keys()) refs.set(v, heap.push({weight: 0, vertex: v}));

0 commit comments

Comments
 (0)