Thanks to visit codestin.com Credit goes to github.com
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 9d89993 commit 0063775Copy full SHA for 0063775
src/graphs/searching/weightquickunion.js
@@ -23,7 +23,7 @@ function QuickUnion(n) {
23
*/
24
QuickUnion.prototype._root = function (i) {
25
while (i !== this._ids[i]) {
26
-// this._ids = this._ids[this._ids[i]]; //enables the path compression
+// this._ids[i] = this._ids[this._ids[i]]; //enables the path compression
27
i = this._ids[i];
28
}
29
return i;
0 commit comments