is here anyone who woul like to help me with a problem? I have a script thats using a greedy pathfinding algorithm.
I want to use something more effective, like this example code:

I was able to implement it, but its for going to every target and I want to optimize for "You have X possible targets, you start at Y and you end at Z, whats are the best 5 targets and the best route".
Iam not able to do that stuff ^^