[boost] [graph] A* implementation doesn't follow the algorithm