currentVisitedNodes

fun currentVisitedNodes(): List<T>

Retrieves a list of all visited nodes on the order they were visited during the last search operation (DFS, BFS, Dijkstra).

Return

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