This commit is contained in:
Andreas Fabri 2014-12-02 17:07:02 +01:00
parent 26fe9a82d6
commit 3df4841b83
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <map>
#include <set>
#include <boost/foreach.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <iostream>
@ -138,7 +139,7 @@ split_graph_into_polylines(const Graph& graph,
std::map<typename boost::graph_traits<Graph>::vertex_descriptor,
typename boost::graph_traits<G>::vertex_descriptor> v2vmap;
BOOST_FOREACH(vertex_descriptor v, vertices(graph)){
BOOST_FOREACH(Graph_vertex_descriptor v, vertices(graph)){
vertex_descriptor vc = add_vertex(g);
g[vc] = v;
v2vmap[v] = vc;