mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-04 06:46:16 +00:00
Merge branch 'master' of https://github.com/UnickSoft/graphonline
This commit is contained in:
@@ -104,7 +104,7 @@ MinimumSpanningTree.prototype.resultStartedFrom = function(vertex, connectedVert
|
||||
for (j = 0; j < connectedVertex[element.id].length; j++)
|
||||
{
|
||||
var connectedElement = connectedVertex[element.id][j];
|
||||
var connectedEdge = this.graph.FindEdge(element.id, connectedElement.id);
|
||||
var connectedEdge = this.graph.FindEdgeMin(element.id, connectedElement.id);
|
||||
if (inTree.indexOf(connectedElement) < 0)
|
||||
{
|
||||
if (minEdge == null || minEdge.weight > connectedEdge.weight)
|
||||
|
||||
Reference in New Issue
Block a user