You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if add next code into createSLAPGuideLayers (who filter-out not matched nodes from last layer) just before guideLayers = append(guideLayers, currentLayer), this test works fine:
ifdone { // if last layer - into last layer must be only 'free' nodescurrentLayer=slices.DeleteFunc(currentLayer, func(inNode)bool{
return!matching.Free(in)
})
}
I will try to make a PR now
The text was updated successfully, but these errors were encountered:
In algorithm 'Hopcroft–Karp', augmentation path should starts and ends with unmatched vertex
but into BipartiteGraph::createSLAPGuideLayers in last layer appended all nodes (actually it's handled by the same code, that any another layer)
I have quite simple test, which demonstrates the problem:
so, this test fails, bcs LargestMatching for this input:
generates this output:
As you see, 'B' vertex occurs twice
if add next code into createSLAPGuideLayers (who filter-out not matched nodes from last layer) just before
guideLayers = append(guideLayers, currentLayer)
, this test works fine:I will try to make a PR now
The text was updated successfully, but these errors were encountered: