allow providing custom goal?
burgalon opened this issue · 2 comments
burgalon commented
Let's suppose the we want pathfinder to find "water" from sourceNode ?
How about adding customGoal in the options argument similarly to the heuristic / distance options?
ivanstnsk commented
hm, is your "water" described as a vertex of graph? If so, you just have to find a path to that point
burgalon commented
i'm just saying it's possible that you would want to just reach a goal (or attribute of a vertex) that's possible in few vertices, and not a specific vertex....
(really didn't describe well the idea in the first comment... :) )