Skip to content

Commit 4bf016f

Browse files
committed
Fix
1 parent a8831b5 commit 4bf016f

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/thealgorithms/datastructures/graphs

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/datastructures/graphs/Kruskal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public HashSet<Edge>[] kruskal(HashSet<Edge>[] graph) {
6868
captain[i] = i;
6969
edges.addAll(graph[i]);
7070
}
71-
int connectedElements = 0; // Number of connected nodes
71+
int connectedElements = 0;
7272
while (connectedElements != nodes && !edges.isEmpty()) {
7373
Edge edge = edges.poll();
7474

0 commit comments

Comments
 (0)