From ef478079e7836a9817992a8f8982b40ce97eef55 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Mar 2012 03:26:11 -0600 Subject: Defend against Dijkstra returning reverse paths --- src/history.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/history.h') diff --git a/src/history.h b/src/history.h index 16d552ab..63550ff5 100644 --- a/src/history.h +++ b/src/history.h @@ -156,13 +156,8 @@ public: typedef graph_traits::vertex_descriptor vertex_descriptor; typedef graph_traits::edge_descriptor edge_descriptor; - typedef property_map::type IndexMap; typedef property_map::type NameMap; - - typedef iterator_property_map PredecessorMap; - typedef iterator_property_map DistanceMap; + typedef property_map::type IndexMap; typedef property_map::type EdgeWeightMap; typedef property_map::type PricePointMap; @@ -175,7 +170,13 @@ public: typedef filtered_graph > FGraph; + typedef property_map::type FNameMap; + typedef property_map::type FIndexMap; + typedef iterator_property_map FPredecessorMap; + typedef iterator_property_map FDistanceMap; commodity_history_t() : indexmap(get(vertex_index, price_graph)), -- cgit v1.2.3