diff --git a/js/app.js b/js/app.js index ba59f6d..2902911 100644 --- a/js/app.js +++ b/js/app.js @@ -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");