Added multi graph supports for some algorithms.

This commit is contained in:
Oleg Sh
2020-01-25 13:18:26 +02:00
parent 7f3ae378c9
commit 0059cebea0
8 changed files with 83 additions and 74 deletions

View File

@@ -73,6 +73,7 @@ MinimumSpanningTree.prototype.result = function(resultCallback)
var result = {};
result["version"] = 1;
result["minPath"] = true;
return result;
}
@@ -145,6 +146,12 @@ MinimumSpanningTree.prototype.getPriority = function()
return -9.5;
}
// Algorithm support multi graph
MinimumSpanningTree.prototype.IsSupportMultiGraph = function ()
{
return true;
}
// Factory for algorithm.
function CreateMinimumSpanningTree(graph, app)