13 #include <boost/graph/graph_traits.hpp>
14 #include <boost/graph/properties.hpp>
39 template<
typename PropertyGraph,
45 const PropertyGraph &g,
47 const NewPointMap &smoothed_pm,
48 const GeometryTraits &)
50 typedef boost::graph_traits< PropertyGraph > GraphTraits;
52 typedef typename GraphTraits::vertex_iterator vertex_iterator;
60 vertex_iterator vi = iterator_pair.first;
61 vertex_iterator vi_end = iterator_pair.second;
63 for(; vi != vi_end; ++vi)
66 put(pm, *vi, smoothed_pm[*vi]);
79 template<
typename PropertyGraph,
85 const PropertyGraph &g,
87 const NewPointMap &smoothed_pm
91 reposition_vertices< PropertyGraph, PointMap, NewPointMap, GeometryTraits >(
92 g, pm, smoothed_pm, gt);