Permalink
Browse files

for now, limited number of iterations

  • Loading branch information...
1 parent 83087ad commit f8079113794b86b0ce737b5e47e2df0b0dea93c2 @uskudnik committed Aug 8, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 ForceAtlas.js
View
@@ -344,8 +344,6 @@ ParallelForceAtlas.prototype.iter = function() {
// console.log("ParallelForceAtlas execution time per iteration: "+(endall-start)/1000);
postMessage(graph.nodes);
-
- this.iter()
}
function Graph() {}
@@ -389,5 +387,9 @@ onmessage = function(msg) {
}
var pfa = new ParallelForceAtlas(graph);
- pfa.iter();
+ var i = 1000;
+ while(i--) {
+ pfa.iter();
+ };
+ close();
}

0 comments on commit f807911

Please sign in to comment.