Skip to content

Commit 58a2630

Browse files
🎨 style(blossom): Avoid unnecessary swap logic.
1 parent 0b64fd5 commit 58a2630

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/core/blossom/blossom.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -902,13 +902,7 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
902902
// Use the least-slack edge to continue the search.
903903
allowedge[deltaedge] = true;
904904
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-
905+
if (label[inblossom[i]] === 0) i = edges[deltaedge][1];
912906
assert(label[inblossom[i]] === 1);
913907
queue.push(i);
914908
} else if (deltatype === 3) {

0 commit comments

Comments
 (0)