File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import list_insert from './list_insert' ;
2
- import fib_heap_link from './fib_heap_link ' ;
2
+ import link from './link ' ;
3
3
4
4
/**
5
5
* CONSOLIDATE: Consolidate the root list of a heap.
@@ -50,8 +50,8 @@ export default function consolidate(compare, l) {
50
50
x = A [ d ] ;
51
51
}
52
52
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 ?
55
55
++ d ;
56
56
if ( d === A . length ) {
57
57
A . push ( null ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import list_insert from './list_insert';
5
5
*
6
6
* Precondition: y is in the root list of some heap.
7
7
*/
8
- export default function fib_heap_link ( y , x ) {
8
+ export default function link ( y , x ) {
9
9
// List_remove(y); // NOT NECESSARY SINCE y IS ALWAYS FROM ROOT LIST
10
10
// make y a child of x
11
11
if ( x . children === null ) {
You can’t perform that action at this time.
0 commit comments