Skip to content

Commit 0c2139d

Browse files
committed
hotfix totalWeight teller
1 parent ac4da53 commit 0c2139d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Kruskal/js/Methods.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function removeConnectedNodes() {
5454
}
5555
function numberOfNodes(value) {
5656
viewer.resetMyAll();
57+
totalWeight = 0;
5758
drawGraph(value);
5859
startKruskal();
5960
}

Kruskal/js/Methods.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function removeConnectedNodes() {
6767

6868
function numberOfNodes(value: number) {
6969
viewer.resetMyAll();
70+
totalWeight = 0;
7071
drawGraph(value);
7172
startKruskal();
7273
}

0 commit comments

Comments
 (0)