finalPath

fun finalPath(): List<T>

Retrieves the shortest path from the start to target node path during the most recent search operation (DFS, BFS, Dijkstra)

Return

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