mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-06-15 21:30:56 +00:00
Fix edges on create graph from matrix.
This commit is contained in:
@@ -580,6 +580,7 @@ Graph.prototype.SetAdjacencyMatrix = function (matrix, viewportSize, currentEnum
|
|||||||
if (cols[i][j] > 0)
|
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);
|
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)
|
if (nEdgeIndex >= 0)
|
||||||
{
|
{
|
||||||
bWeightGraph = bWeightGraph || this.edges[nEdgeIndex].weight != 1;
|
bWeightGraph = bWeightGraph || this.edges[nEdgeIndex].weight != 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user