mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-03 14:26:26 +00:00
Added multi graph supports for some algorithms.
This commit is contained in:
@@ -55,6 +55,7 @@ FindShortPathNew.prototype.resultCallback = function(pathObjects, properties, re
|
||||
{
|
||||
var outputResult = {};
|
||||
outputResult["version"] = 1;
|
||||
outputResult["minPath"] = true;
|
||||
|
||||
this.pathObjects = pathObjects;
|
||||
this.properties = properties;
|
||||
@@ -205,6 +206,12 @@ FindShortPathNew.prototype.getPriority = function()
|
||||
return -10;
|
||||
}
|
||||
|
||||
// Algorithm support multi graph
|
||||
FindShortPathNew.prototype.IsSupportMultiGraph = function ()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Factory for connected components.
|
||||
function CreateFindShortPathNew(graph, app)
|
||||
|
||||
Reference in New Issue
Block a user