Skip to content

Commit

Permalink
fixed start over from beginning for finding mincut
Browse files Browse the repository at this point in the history
  • Loading branch information
txia35 committed Mar 27, 2024
1 parent 96d783e commit 418047b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,11 @@ function cancelHighlightedElements() {
index = 0;
cancelHighlightedElements();
selectedPath = [];
selectedNodes = new Set();
$("#history").html("");
totalflow = 0;
cancelHighlightedNodes();
highlightSourceAndSink();

$(this).css("background-color", "#1ab394");
$(this).text("Start Practice");
Expand Down

0 comments on commit 418047b

Please sign in to comment.