Skip to content

Commit 15bab98

Browse files
😒 chore: Patch sources.
1 parent a62e499 commit 15bab98

25 files changed

+59
-48
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './undirected' ;

src/undirected/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './offline' ;
2+
export * from './online' ;

src/undirected/offline/algo/eulerian/dup.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
var dup_t = function(){
4+
export function dup_t(){
55

66
var dup = function(g, V, m, next, dist, e){
77

@@ -27,7 +27,6 @@ var dup_t = function(){
2727

2828
return dup;
2929

30-
};
30+
}
3131

3232

33-
exports.dup_t = dup_t;

src/undirected/offline/algo/eulerian/eventour.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
var eventour_t = function () {
3+
export function eventour_t () {
44

55
/**
66
* @param {int} fjfj dkdj
@@ -76,6 +76,5 @@ var eventour_t = function () {
7676

7777
return eventour;
7878

79-
};
79+
}
8080

81-
exports.eventour_t = eventour_t;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export * from './dup' ;
2+
export * from './eventour' ;
3+
export * from './oddgraph' ;
4+
export * from './simplegraph' ;
5+
export * from './wblossom_n3' ;
6+
export * from './wblossom_n4' ;

src/undirected/offline/algo/eulerian/oddgraph.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
var oddgraph_t = function(){
3+
export function oddgraph_t(){
44

55
var oddgraph = function(g, dist, h){
66

@@ -24,6 +24,5 @@ var oddgraph_t = function(){
2424

2525
return oddgraph;
2626

27-
};
27+
}
2828

29-
exports.oddgraph_t = oddgraph_t;

src/undirected/offline/algo/eulerian/simplegraph.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44

5-
var simplegraph_t = function(){
5+
export function simplegraph_t(){
66

77
var simplegraph = function(g, order, dist, h){
88
var V = [], i, j; // link between g and h
@@ -38,6 +38,5 @@ var simplegraph_t = function(){
3838

3939
return simplegraph;
4040

41-
};
41+
}
4242

43-
exports.simplegraph_t = simplegraph_t;

src/undirected/offline/algo/eulerian/wblossom_n3.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// to validate this new code.
1818

1919

20-
var wblossom_n3_t = function (debug, CHECK_OPTIMUM, CHECK_DELTA) {
20+
export function wblossom_n3_t (debug, CHECK_OPTIMUM, CHECK_DELTA) {
2121

2222
// If assigned, DEBUG(str) is called with lots of debug messages.
2323
var DEBUG = debug ? function(s){ console.log('DEBUG:', s); } : null;
@@ -1147,8 +1147,7 @@ var wblossom_n3_t = function (debug, CHECK_OPTIMUM, CHECK_DELTA) {
11471147
return maxWeightMatching;
11481148

11491149

1150-
};
1150+
}
11511151

11521152

11531153

1154-
exports.wblossom_n3_t = wblossom_n3_t;

src/undirected/offline/algo/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './eulerian' ;
2+
export * from './sp' ;
3+
export * from './util' ;

src/undirected/offline/algo/sp/dijkstra.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
*/
2222

23-
var dijkstra = function ( g, order, source, prev, dist, used, ref, left ) {
23+
export function dijkstra ( g, order, source, prev, dist, used, ref, left ) {
2424

2525
var current;
2626

@@ -58,7 +58,6 @@ var dijkstra = function ( g, order, source, prev, dist, used, ref, left ) {
5858
});
5959
}
6060

61-
};
61+
}
6262

6363

64-
exports.dijkstra = dijkstra;

0 commit comments

Comments
 (0)