diff --git a/cytoscape-layvo.js b/cytoscape-layvo.js index c704fb9..31838ae 100644 --- a/cytoscape-layvo.js +++ b/cytoscape-layvo.js @@ -377,8 +377,6 @@ var getTotalEdgeLength = function getTotalEdgeLength(cy) { totalLength += getDistance(sp[i], sp[i + 1]); } } - - totalLength += getDistance(p, q); } } catch (err) { _didIteratorError = true; diff --git a/src/layout-evaluation.js b/src/layout-evaluation.js index dbf3359..cbd28ea 100644 --- a/src/layout-evaluation.js +++ b/src/layout-evaluation.js @@ -275,8 +275,6 @@ let getTotalEdgeLength = function (cy) { totalLength += getDistance(sp[i], sp[i + 1]); } } - - totalLength += getDistance(p, q); } return totalLength; };