Added edge bend. Small edges fixes.

This commit is contained in:
Unick Soft
2019-02-10 20:00:38 +02:00
parent 94f643f587
commit b2a80c7f4f
10 changed files with 503 additions and 140 deletions

View File

@@ -90,10 +90,10 @@ Graph.prototype.DeleteEdge = function(edgeObject)
var index = this.edges.indexOf(edgeObject);
if (index > -1)
{
var edgeRevert = this.FindEdge(edgeObject.vertex2, edgeObject.vertex1);
var edgeRevert = this.FindEdge(edgeObject.vertex2.id, edgeObject.vertex1.id);
if (edgeRevert != null && edgeRevert.isDirect)
{
edgeRevert.isPair = false;
edgeRevert.hasPair = false;
}
this.edges.splice(index, 1);
}