I have a US spatial map connecting cities with weights (distances). I'd like to find the longest (most weighted) trail in this map.
- each edge is visited 0 or 1 times
- each node can be visited [0, inf) times.
There's NO requirement that all the nodes or the edges need to be visited.
Method and prolog resources suggestions would be fine.