var githubNodesObj = {}; var githubEdgesObj = {}; var graphAttributes = {}; // Interface: function init(){ getGraphAttributes() } function newQuery(query){ sigmaDOM = thisMovie("SiGMa"); getGithubGraph(query); } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } } function setComboBoxes(){ var colorAtts = []; var sizeAtts = []; for(var att in graphAttributes){ graphAttributes[att]["id"] = att; if(graphAttributes[att]["type"]=="Num"){ sizeAtts.push(graphAttributes[att]); colorAtts.push(graphAttributes[att]); }else{ colorAtts.push(graphAttributes[att]); } } var nodes_color = document.forms["node_properties"]["nodes_color"]; var nodes_size = document.forms["node_properties"]["nodes_size"]; while(nodes_color.options.length) nodes_color.options.remove(0); while(nodes_size.options.length) nodes_size.options.remove(0); var i; var optn; var l=colorAtts.length; for(i=0;i