Support negative weight for edges.

This commit is contained in:
Oleg Sh
2024-03-30 15:03:30 +01:00
parent 2e302b9013
commit 61bafa7d51
12 changed files with 37 additions and 9 deletions

View File

@@ -155,6 +155,10 @@ MinimumSpanningTree.prototype.IsSupportMultiGraph = function ()
return true;
}
MinimumSpanningTree.prototype.IsSupportNegativeWeight = function()
{
return true;
}
// Factory for algorithm.
function CreateMinimumSpanningTree(graph, app)