News for hackers. Stuff that matters.

justopinions

Re:Dijkstra's Algorithm on Thursday November 10, 2016 @05:57AM (#12919371)
PathFinder is poorly designed imo. What is the result of calling getPath or getMinLength before calling findPath? The correct way of returning the path calculation is

Path findPath();

not void findPath() which stores the results as fields on PathFinder.