Closed Kemsekov closed 6 months ago
Okey, it is turned out to be NP-complete problem.
It is not so easy to solve.
There is a good algorithm that works for directed acyclic graph but it is not general case solution... I will delay this issue a bit and close other ones first.
Actually, it's the same problem as Hamilton path, so there is no reason to keep 2 same issues
It works the same way as dijkstra algrotihm but you just change sign
<
to>