Skip to content

Commit 6c80a73

Browse files
🎨 style: Run XO.
1 parent ca9351c commit 6c80a73

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/FibonacciHeap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class FibonacciHeap {
8989
this.min = consolidate(this.compare, z.next);
9090
}
9191

92-
z.next = z; // TODO remove this
92+
z.next = z; // (Re)move this?
9393
z.prev = z;
9494
z.children = null;
9595
z.degree = 0;

src/cut.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default function cut(x, y) {
66
y.children = x.next;
77
list_remove(x);
88
}
9+
910
--y.degree;
1011
x.parent = null;
1112
x.mark = false;

src/fib_heap_link.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import list_remove from './list_remove';
21
import list_insert from './list_insert';
32

43
/**
@@ -7,7 +6,7 @@ import list_insert from './list_insert';
76
* Precondition: y is in the root list of some heap.
87
*/
98
export default function fib_heap_link(y, x) {
10-
//list_remove(y); // NOT NECESSARY SINCE y IS ALWAYS FROM ROOT LIST
9+
// List_remove(y); // NOT NECESSARY SINCE y IS ALWAYS FROM ROOT LIST
1110
// make y a child of x
1211
if (x.children === null) {
1312
y.next = y;

src/list_reset_parent.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ export default function list_reset_parent(children) {
66
next = x.next;
77
x.parent = null;
88
} while (next !== children);
9-
109
}

0 commit comments

Comments
 (0)