15 template <
typename Graph,
typename EdgeMap,
typename HeurMap>
19 typedef typename boost::property_traits<EdgeMap>::category category;
20 typedef typename boost::property_traits<EdgeMap>::key_type key_type;
21 typedef typename boost::property_traits<EdgeMap>::value_type value_type;
22 typedef typename boost::property_traits<EdgeMap>::reference reference;
25 const EdgeMap & edge_map;
26 const HeurMap & heur_map;
28 waste_edge_map(Graph & graph,
const EdgeMap & edge_map,
const HeurMap & heur_map):
29 graph(graph), edge_map(edge_map), heur_map(heur_map)
34 template <
typename Graph,
typename EdgeMap,
typename HeurMap>
36 make_waste_edge_map(Graph & graph,
const EdgeMap & edge_map,
const HeurMap & heur_map)
41 template <
typename Graph,
typename EdgeMap,
typename HeurMap>
42 inline const double get(
43 const waste_edge_map<Graph,EdgeMap,HeurMap> & map,
44 const typename boost::graph_traits<Graph>::edge_descriptor & edge)
46 return get(map.edge_map, edge)
47 +
get(map.heur_map, target(edge, map.graph))
48 -
get(map.heur_map, source(edge, map.graph));
Definition: waste_edge_map.h:16