--- a/graph.php +++ b/graph.php @@ -86,9 +86,9 @@ if ($format == "html") { ?> <div id="sigma-example" width="960" style="min-height:800px;background-color: #333;"></div> - <script src="javascripts/sigma.min.js"></script> - <script src="javascripts/sigma/plugins/sigma.parseGexf.js"></script> - <script src="javascripts/sigma/plugins/sigma.forceatlas2.js"></script> + <script src="js/sigma.min.js"></script> + <script src="js/sigma/plugins/sigma.parseGexf.js"></script> + <script src="js/sigma/plugins/sigma.forceatlas2.js"></script> <script type="text/javascript">function init() { // Instanciate sigma.js and customize rendering : var sigInst = sigma.init(document.getElementById('sigma-example')).drawingProperties({ @@ -113,12 +113,12 @@ sigInst.bind('downnodes',function(event){ var nodes = event.content; }); - // Draw the graph : - sigInst.draw(); // Start the ForceAtlas2 algorithm // (requires "sigma.forceatlas2.js" to be included) sigInst.startForceAtlas2(); + // Draw the graph : + sigInst.draw(); } if (document.addEventListener) {