Skip to content

Commit

Permalink
😒 chore: Patch sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed May 14, 2020
1 parent a62e499 commit 15bab98
Show file tree
Hide file tree
Showing 25 changed files with 59 additions and 48 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './undirected' ;
2 changes: 2 additions & 0 deletions src/undirected/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './offline' ;
export * from './online' ;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/eulerian/dup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@



var dup_t = function(){
export function dup_t(){

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

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

return dup;

};
}


exports.dup_t = dup_t;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/eulerian/eventour.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var eventour_t = function () {
export function eventour_t () {

/**
* @param {int} fjfj dkdj
Expand Down Expand Up @@ -76,6 +76,5 @@ var eventour_t = function () {

return eventour;

};
}

exports.eventour_t = eventour_t;
6 changes: 6 additions & 0 deletions src/undirected/offline/algo/eulerian/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './dup' ;
export * from './eventour' ;
export * from './oddgraph' ;
export * from './simplegraph' ;
export * from './wblossom_n3' ;
export * from './wblossom_n4' ;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/eulerian/oddgraph.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var oddgraph_t = function(){
export function oddgraph_t(){

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

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

return oddgraph;

};
}

exports.oddgraph_t = oddgraph_t;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/eulerian/simplegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@



var simplegraph_t = function(){
export function simplegraph_t(){

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

return simplegraph;

};
}

exports.simplegraph_t = simplegraph_t;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/eulerian/wblossom_n3.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// to validate this new code.


var wblossom_n3_t = function (debug, CHECK_OPTIMUM, CHECK_DELTA) {
export function wblossom_n3_t (debug, CHECK_OPTIMUM, CHECK_DELTA) {

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


};
}



exports.wblossom_n3_t = wblossom_n3_t;
3 changes: 3 additions & 0 deletions src/undirected/offline/algo/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './eulerian' ;
export * from './sp' ;
export * from './util' ;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/sp/dijkstra.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

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

var current;

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

};
}


exports.dijkstra = dijkstra;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/sp/floyd.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var floyd_t = function(){
export function floyd_t(){

var floyd = function(order, dist){
var i, j, k;
Expand All @@ -17,6 +17,5 @@ var floyd_t = function(){

return floyd;

};
}

exports.floyd_t = floyd_t;
3 changes: 3 additions & 0 deletions src/undirected/offline/algo/sp/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './dijkstra' ;
export * from './floyd' ;
export * from './sptreedfs' ;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/sp/sptreedfs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var sptreedfs_t = function(){
export function sptreedfs_t(){

var dfs = function(g, next, dist, s, t){

Expand All @@ -26,6 +26,5 @@ var sptreedfs_t = function(){

return sptreedfs;

};
}

exports.sptreedfs_t = sptreedfs_t;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/util/amat.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var amat_t = function(){
export function amat_t(){

var amat = function(g, order, dist){

Expand All @@ -14,6 +14,5 @@ var amat_t = function(){

return amat;

};
}

exports.amat_t = amat_t;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/util/copy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var copy_t = function(){
export function copy_t(){

var copy = function(g, h){

Expand All @@ -17,6 +17,5 @@ var copy_t = function(){

return copy;

};
}

exports.copy_t = copy_t;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/util/d2s.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var d2s = function(g, h, V){
export function d2s(g, h, V){

g.vitr(function(v){
V[v[0]] = h.vadd(v[0]);
Expand All @@ -12,6 +12,5 @@ var d2s = function(g, h, V){
});
});

};
}

exports.d2s = d2s;
6 changes: 6 additions & 0 deletions src/undirected/offline/algo/util/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './amat' ;
export * from './copy' ;
export * from './d2s' ;
export * from './pmat' ;
export * from './smat' ;
export * from './sqmat' ;
5 changes: 2 additions & 3 deletions src/undirected/offline/algo/util/sqmat.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


var sqmat = function(d, n, v){
export function sqmat(d, n, v){

var i = n;
var m = new Array(i);
Expand All @@ -10,7 +10,6 @@ var sqmat = function(d, n, v){

return m;

};
}


exports.sqmat = sqmat;
1 change: 1 addition & 0 deletions src/undirected/offline/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './algo' ;
5 changes: 2 additions & 3 deletions src/undirected/online/data/dense.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var dense_graph_t = function(){
export function dense_graph_t(){

var graph = function(){

Expand Down Expand Up @@ -119,6 +119,5 @@ var dense_graph_t = function(){

return graph;

};
}

exports.dense_graph_t = dense_graph_t;
5 changes: 2 additions & 3 deletions src/undirected/online/data/fuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* vertices in other fused graphs.
*/

var fuse_t = function(){
export function fuse_t(){

var fuse = function(){

Expand Down Expand Up @@ -59,6 +59,5 @@ var fuse_t = function(){

return fuse;

};
}

exports.fuse_t = fuse_t;
5 changes: 2 additions & 3 deletions src/undirected/online/data/gindex.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/


var index_t = function(){
export function index_t(){

var index = function(G, attr){

Expand Down Expand Up @@ -62,6 +62,5 @@ var index_t = function(){

return index;

};
}

exports.index_t = index_t;
4 changes: 4 additions & 0 deletions src/undirected/online/data/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './dense' ;
export * from './fuse' ;
export * from './gindex' ;
export * from './sparse' ;
5 changes: 2 additions & 3 deletions src/undirected/online/data/sparse.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@



var sparse_graph_t = function(){
export function sparse_graph_t(){

/**
* Object constructor
Expand Down Expand Up @@ -180,6 +180,5 @@ var sparse_graph_t = function(){

return graph;

};
}

exports.sparse_graph_t = sparse_graph_t;
1 change: 1 addition & 0 deletions src/undirected/online/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './data' ;

0 comments on commit 15bab98

Please sign in to comment.