Skip to content

Commit 8bf0538

Browse files
🎨 style: Rename fib_heap_link to link.
1 parent 6d5f0f1 commit 8bf0538

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/consolidate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import list_insert from './list_insert';
2-
import fib_heap_link from './fib_heap_link';
2+
import link from './link';
33

44
/**
55
* CONSOLIDATE: Consolidate the root list of a heap.
@@ -50,8 +50,8 @@ export default function consolidate(compare, l) {
5050
x = A[d];
5151
}
5252

53-
fib_heap_link(y, x);
54-
A[d] = null; // Put before fib_heap_link if using x.degree ?
53+
link(y, x);
54+
A[d] = null; // Put before link if using x.degree ?
5555
++d;
5656
if (d === A.length) {
5757
A.push(null);

src/fib_heap_link.js renamed to src/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import list_insert from './list_insert';
55
*
66
* Precondition: y is in the root list of some heap.
77
*/
8-
export default function fib_heap_link(y, x) {
8+
export default function link(y, x) {
99
// List_remove(y); // NOT NECESSARY SINCE y IS ALWAYS FROM ROOT LIST
1010
// make y a child of x
1111
if (x.children === null) {

0 commit comments

Comments
 (0)