Skip to content

Commit

Permalink
Explanation added
Browse files Browse the repository at this point in the history
  • Loading branch information
prashant-raghu authored May 30, 2018
1 parent 41632d6 commit ff18489
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions code.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function generate() {
iterator = 1;
y = 300;

dataJson.push({
dataJson.push({ //first node "ALL"
"data": {
"id": "0",
"idInt": 0,
Expand Down Expand Up @@ -222,9 +222,6 @@ function generate() {

}


//backupJson = dataJson;
// backupJson = Array.from(dataJson);
backupJson = copy(dataJson);

Promise.all([
Expand Down Expand Up @@ -300,7 +297,7 @@ function pop() {
}
document.querySelector('.resultvalue').innerHTML = someString;
}

// Function to Deep copy objects that contain cycles.
function copy(o) {
var output, v, key;
output = Array.isArray(o) ? [] : {};
Expand Down Expand Up @@ -328,10 +325,7 @@ function find() {
if (lowerarray.length === greaterarray.length) {

}



for (val1 of lowerarray) {
for (val1 of lowerarray) {
for (val2 of greaterarray) {
if (val1 === val2) {
var dex = subarray.indexOf(val2);
Expand Down Expand Up @@ -366,8 +360,6 @@ function find() {
nextcurarray.push(tempval);
// var result = edgehighlighter(0);
// generate data_cube


var low = 0;
while (nextcurarray.length <= greaterarray.length) {
var count = 0;
Expand Down Expand Up @@ -429,9 +421,6 @@ function find() {
low = low + 1;

}



Promise.all([
fetch('cy-style.json', {
mode: 'no-cors'
Expand Down Expand Up @@ -471,4 +460,4 @@ function find() {
});
}
}
}
}

0 comments on commit ff18489

Please sign in to comment.