mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-01 15:26:12 +00:00
Fix edges on create graph from matrix.
This commit is contained in:
parent
0904a350ca
commit
1eaa035cc5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user