resetSearchResults

Clears the search results stored in the graph.

The following functions rely on the searchResults property, which is populated by running a search algorithm (DFS, BFS, or Dijkstra). These functions will throw an IllegalStateException if no search are run after calling this function:

  • depth():

  • currentVisitedNodes():

  • visitedNodes():

  • finalPath():

  • foundTarget():

  • distanceTo(node: T):

  • maxDistance():

  • furthestNode():