Has anyone implemented a network traversal algorithm in Anaplan? To explain the problem, refer to screenshot below. What I want is to generate a path that goes through all the nodes, e.g. Node 1 to Node 3 then to Node 4 then to Node 2 that returns the path with the lowest weighting. So
- Node 1 to Node 3 is 7 (as per screenshot)
- Node 3 to Node 4 is 2
- Node 4 to Node 2 is 4
Total is 7+2+4 = 13
What I need is an algorithm which will give the lowest value result
Node 4 ⇒ Node 2 ⇒ Node 3 ⇒ Node 1 = 4 + 5 + 2 = 11
Node 3 ⇒ Node 1 ⇒ Node 4 ⇒ Node 2 = 2 + 3 + 4 = 9
Node 1 ⇒ Node 2 ⇒ Node 3 ⇒ Node 4 = 1 + 5 + 2 = 8
With the simulations above, the last one which results in 8 is the best path.
If you did computer science in Uni you would have had to solution this using a recursive or structural language but using a multi dimensional language is a new challenge. They should include this question in an Anaplan Solutioning Challenge