@@ -537,12 +537,11 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
537
537
// Bubble up through the blossom tree from vertex v to an immediate
538
538
// sub-blossom of b.
539
539
let j ;
540
- let t ;
541
540
let jstep ;
542
541
let endptrick ;
543
542
let stop ;
544
543
let p ;
545
- t = v ;
544
+ let t = v ;
546
545
while ( blossomparent [ t ] !== b ) t = blossomparent [ t ] ;
547
546
// Recursively deal with the first sub-blossom.
548
547
if ( t >= nvertex ) augmentBlossom ( t , v ) ;
@@ -652,9 +651,7 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
652
651
653
652
let b ;
654
653
let d ;
655
- let t ;
656
654
let v ;
657
- let augmented ;
658
655
let kslack ;
659
656
let base ;
660
657
let deltatype ;
@@ -663,7 +660,7 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
663
660
let deltablossom ;
664
661
665
662
// Main loop: continue until no further improvement is possible.
666
- for ( t = 0 ; t < nvertex ; ++ t ) {
663
+ for ( let t = 0 ; t < nvertex ; ++ t ) {
667
664
// Each iteration of this loop is a "stage".
668
665
// A stage finds an augmenting path and uses that to improve
669
666
// the matching.
@@ -689,7 +686,7 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
689
686
}
690
687
691
688
// Loop until we succeed in augmenting the matching.
692
- augmented = 0 ;
689
+ let augmented = false ;
693
690
// eslint-disable-next-line no-constant-condition
694
691
while ( true ) {
695
692
// Each iteration of this loop is a "substage".
@@ -746,7 +743,7 @@ export default function blossom(CHECK_OPTIMUM, CHECK_DELTA) {
746
743
// Found an augmenting path; augment the
747
744
// matching and end this stage.
748
745
augmentMatching ( k ) ;
749
- augmented = 1 ;
746
+ augmented = true ;
750
747
break ;
751
748
}
752
749
} else if ( label [ w ] === 0 ) {
0 commit comments