We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b64fd5 commit 58a2630Copy full SHA for 58a2630
src/core/blossom/blossom.js
@@ -902,13 +902,7 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
902
// Use the least-slack edge to continue the search.
903
allowedge[deltaedge] = true;
904
let i = edges[deltaedge][0];
905
- let j = edges[deltaedge][1];
906
- if (label[inblossom[i]] === 0) {
907
- const temporary = i;
908
- i = j;
909
- j = temporary;
910
- }
911
-
+ if (label[inblossom[i]] === 0) i = edges[deltaedge][1];
912
assert(label[inblossom[i]] === 1);
913
queue.push(i);
914
} else if (deltatype === 3) {
0 commit comments