furthestNode

Retrieves the node that is the farthest from the starting node in the most recent search operation (BFS, Dijkstra).

Return

The node that is the farthest from the starting node.

Throws

IllegalStateException

If no search algorithm (BFS, Dijkstra) has been executed yet.