Open rochaporto opened 6 years ago
Example: https://github.com/XCSoar/XCSoar/blob/fb18d530575a1126400554af65d3ee582d1c809a/src/Engine/Contest/Solvers/ContestDijkstra.cpp
There must be golang libraries available already.
https://www.geeksforgeeks.org/find-longest-path-directed-acyclic-graph/
Valid option for directed acyclic graphs:
It should work only on DAG, not general graphs. https://en.wikipedia.org/wiki/Longest_path_problem
Example: https://github.com/XCSoar/XCSoar/blob/fb18d530575a1126400554af65d3ee582d1c809a/src/Engine/Contest/Solvers/ContestDijkstra.cpp
There must be golang libraries available already.