I need to use the Boost library to get the shortest path from one point to another. I looked at the sample code, and it is worthy of easy to follow. However, the example only shows how to get the total distances. I am trying to figure out how to iterate over a predecessor card to actually get the shortest path, and I cannot figure it out. I read these two questions on this issue:
The shortest Dijkstra path with VertexList = ListS in the acceleration graph
Boost :: Dijkstra Shortest Path, how to get vertex index from path iterator?
But in both examples presented, typedef IndexMap does not seem to work with the Visual Studio compiler, and to be honest, Boost typedefs are a bit confusing to me, and I am having some problems with this. Based on the Boost example, can someone tell me how can I just get the path out of it? I would be very grateful.
http://www.boost.org/doc/libs/1_46_1/libs/graph/example/dijkstra-example.cpp
c ++ boost graph boost-graph
Darkenor
source share