Change modern graph style

This commit is contained in:
Unick Soft
2017-06-04 14:47:30 +03:00
parent 7a4d803717
commit 15ae67cf2d
2 changed files with 61 additions and 1 deletions

View File

@@ -54,3 +54,8 @@ BaseEdge.prototype.GetPixelLength = function ()
return Point.distance(this.vertex1.position, this.vertex2.position);
}
}
BaseEdge.prototype.GetWeight = function ()
{
return this.useWeight ? this.weight : 1;
}