Fix create graph by matrix.

This commit is contained in:
Unick Soft committed 2020-05-03 21:46:33 +02:00
1 parent 4fbe526813
commit 583cb024a1
1 file changed
+4
+4
View File
@@ -17,6 +17,10 @@ function BaseEdge(vertex1, vertex2, isDirect, weight, upText)
this.useWeight = false; this.useWeight = false;
this.id = 0; this.id = 0;
this.model = new EdgeModel(); this.model = new EdgeModel();
if (upText === undefined)
this.upText = "";
else
this.upText = upText; this.upText = upText;
if (weight !== undefined) if (weight !== undefined)