graph icon indicating copy to clipboard operation
graph copied to clipboard

[Question] Is predecessor map in `astar_search<>()` redundant?

Open qbit86 opened this issue 4 years ago • 1 comments

Why does API takes predecessor map as an argument? Anyway, it can be restored using the edge_relaxed visitor callback, right?

qbit86 avatar Jun 01 '21 22:06 qbit86

Maybe they are for different use cases? An argument provides a way for algorithm users to get results, and a callback is used by algorithm designers to use the function as building block. To me, callbacks are more powerful but arguments are easier to use.

hdu-sdlzx avatar Dec 10 '22 03:12 hdu-sdlzx