Skip to content

Commit be49e4b

Browse files
committed
remove unused field flagged by PMD
1 parent bfdd3e9 commit be49e4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/thealgorithms/graph/HopcroftKarp.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Hopcroft–Karp algorithm for maximum bipartite matching.
1010
*
11-
* Left part: vertices [0..nLeft-1], Right part: [0..nRight-1].
11+
* Left part: vertices [0,nLeft-1], Right part: [0,nRight-1].
1212
* Adjacency list: for each left vertex u, list right vertices v it connects to.
1313
*
1414
* Time complexity: O(E * sqrt(V)).
@@ -20,7 +20,6 @@
2020
public class HopcroftKarp {
2121

2222
private final int nLeft;
23-
private final int nRight;
2423
private final List<List<Integer>> adj;
2524

2625
private final int[] pairU;
@@ -29,7 +28,6 @@ public class HopcroftKarp {
2928

3029
public HopcroftKarp(int nLeft, int nRight, List<List<Integer>> adj) {
3130
this.nLeft = nLeft;
32-
this.nRight = nRight;
3331
this.adj = adj;
3432

3533
this.pairU = new int[nLeft];

0 commit comments

Comments
 (0)