mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-13 11:16:07 +00:00
Turn on negative edge weight support
This commit is contained in:
@@ -256,7 +256,7 @@ BaseEdge.prototype.SetWeight = function(weight)
|
||||
{
|
||||
useWeight = true;
|
||||
}
|
||||
weight = (!isNaN(parseInt(weight, 10)) && weight >= 0) ? weight : 1;
|
||||
weight = (!isNaN(parseInt(weight, 10))/*&& weight >= 0*/) ? weight : 1;
|
||||
|
||||
this.weight = Number(weight);
|
||||
this.useWeight = useWeight;
|
||||
|
||||
Reference in New Issue
Block a user