From 1eaa035cc5b942a458c6a8764d76abf55b1f82e1 Mon Sep 17 00:00:00 2001 From: Oleg Sh Date: Sun, 6 Mar 2022 21:06:01 +0200 Subject: [PATCH] Fix edges on create graph from matrix. --- script/Graph.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/Graph.js b/script/Graph.js index 8db3934..e68c8d0 100644 --- a/script/Graph.js +++ b/script/Graph.js @@ -580,6 +580,7 @@ Graph.prototype.SetAdjacencyMatrix = function (matrix, viewportSize, currentEnum if (cols[i][j] > 0) { var nEdgeIndex = this.AddNewEdgeSafe(this.vertices[i], this.vertices[j], cols[i][j] != cols[j][i], cols[i][j], true); + this.FixEdgeCurved(nEdgeIndex); if (nEdgeIndex >= 0) { bWeightGraph = bWeightGraph || this.edges[nEdgeIndex].weight != 1;