get Path
Retrieves the path from the starting node to the specified target node based on the most recent search results.
Return
A list of nodes representing the path from the start to the target node, or null if no path was found.
Parameters
target
The target node for which the path is to be retrieved.
Throws
If no search algorithm (DFS, BFS, shortestPathsFrom) has been executed yet.