visitedNodes

fun visitedNodes(): List<T>

Retrieves a (unordered) list of all visited nodes. Or an empty list if no search algorithm (DFS, BFS, Dijkstra) has been run yet.

Return

A list of visited nodes or an empty list if no search algorithm (DFS, BFS, Dijkstra) has been run yet.