You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider the following code (using the springyui.js framework):
<!doctypehtml><html><body><scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script><scriptsrc="springy.js"></script><scriptsrc="springyui.js"></script><script>
var graph = new Springy.Graph();
var nodes = [];
jQuery(function(){jQuery('#springydemo').springy({graph: graph});});
var nodeIndex = 0;
var interval = setInterval(function() {nodes.push(graph.newNode({label: nodeIndex.toString()}));for(vari=0;i<nodeIndex;i++){if(Math.random()<0.5)graph.newEdge(nodes[nodeIndex],nodes[i]);}
nodeIndex++;
},1500);</script><canvasid="springydemo"width="640"height="480"></canvas><br><inputtype="button"onclick="clearInterval(interval)"value="Stop generating nodes"/></body></html>
That is, every 1.5 seconds we add a new node that we connect to each existing node with probability 0.5. Invariably, after a couple of nodes (14 or so), the optimisation process seems to diverge, and even if you stop adding nodes by pressing the button, the layout does not converge.
Is this perhaps a known issue, or a limitation of the optimisation process?
The text was updated successfully, but these errors were encountered:
Consider the following code (using the springyui.js framework):
That is, every 1.5 seconds we add a new node that we connect to each existing node with probability 0.5. Invariably, after a couple of nodes (14 or so), the optimisation process seems to diverge, and even if you stop adding nodes by pressing the button, the layout does not converge.
Is this perhaps a known issue, or a limitation of the optimisation process?
The text was updated successfully, but these errors were encountered: