mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-10-26 14:00:16 +00:00
Fix create graph by matrix.
This commit is contained in:
1 parent
4fbe526813
commit
583cb024a1
1 file changed
+5
-1
+5
-1
@@ -17,7 +17,11 @@ 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();
|
||||||
this.upText = upText;
|
|
||||||
|
if (upText === undefined)
|
||||||
|
this.upText = "";
|
||||||
|
else
|
||||||
|
this.upText = upText;
|
||||||
|
|
||||||
if (weight !== undefined)
|
if (weight !== undefined)
|
||||||
this.SetWeight(weight);
|
this.SetWeight(weight);
|
||||||
|
|||||||
Reference in new issue
Block a user