anvaka/ngraph.path

allow providing custom goal?

burgalon opened this issue · 2 comments

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?

hm, is your "water" described as a vertex of graph? If so, you just have to find a path to that point

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... :) )