mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-03 14:26:26 +00:00
Merge branch 'master' of https://github.com/UnickSoft/graphonline
This commit is contained in:
@@ -76,7 +76,7 @@ FindConnectedComponentNew.prototype.calculate = function(fillUpText = false)
|
||||
for (j = 0; j < connectedVertex[stackElement.id].length; j++)
|
||||
{
|
||||
var nextVertex = connectedVertex[stackElement.id][j];
|
||||
var connectedEdge = this.graph.FindEdge(stackElement.id, nextVertex.id);
|
||||
var connectedEdge = this.graph.FindEdgeAny(stackElement.id, nextVertex.id);
|
||||
if (stack.indexOf(nextVertex) < 0)
|
||||
{
|
||||
stack.push(nextVertex);
|
||||
@@ -113,6 +113,12 @@ FindConnectedComponentNew.prototype.getPriority = function()
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Algorithm support multi graph
|
||||
FindConnectedComponentNew.prototype.IsSupportMultiGraph = function()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Factory for connected components.
|
||||
function CreateConnectedComponetsNew(graph, app)
|
||||
|
||||
Reference in New Issue
Block a user