mirror of https://github.com/CGAL/cgal
remove trailing whitespace
This commit is contained in:
parent
4a20dded24
commit
6e8a9a6432
|
|
@ -139,7 +139,6 @@ split_graph_into_polylines(const Graph& graph,
|
||||||
typename boost::graph_traits<G>::vertex_descriptor> V2vmap;
|
typename boost::graph_traits<G>::vertex_descriptor> V2vmap;
|
||||||
V2vmap v2vmap;
|
V2vmap v2vmap;
|
||||||
|
|
||||||
|
|
||||||
BOOST_FOREACH(Graph_vertex_descriptor v, vertices(graph)){
|
BOOST_FOREACH(Graph_vertex_descriptor v, vertices(graph)){
|
||||||
vertex_descriptor vc = add_vertex(g);
|
vertex_descriptor vc = add_vertex(g);
|
||||||
g[vc] = v;
|
g[vc] = v;
|
||||||
|
|
@ -150,7 +149,7 @@ split_graph_into_polylines(const Graph& graph,
|
||||||
BOOST_FOREACH(Graph_edge_descriptor e, edges(graph)){
|
BOOST_FOREACH(Graph_edge_descriptor e, edges(graph)){
|
||||||
Graph_vertex_descriptor vs = source(e,graph);
|
Graph_vertex_descriptor vs = source(e,graph);
|
||||||
Graph_vertex_descriptor vt = target(e,graph);
|
Graph_vertex_descriptor vt = target(e,graph);
|
||||||
vertex_descriptor vsc, vtc;
|
vertex_descriptor vsc, vtc;
|
||||||
if(vs == vt){
|
if(vs == vt){
|
||||||
std::cerr << "ignore self loop\n";
|
std::cerr << "ignore self loop\n";
|
||||||
}else{
|
}else{
|
||||||
|
|
@ -159,14 +158,14 @@ split_graph_into_polylines(const Graph& graph,
|
||||||
if((it = v2vmap.find(vs)) == v2vmap.end()){
|
if((it = v2vmap.find(vs)) == v2vmap.end()){
|
||||||
vsc = add_vertex(g);
|
vsc = add_vertex(g);
|
||||||
g[vsc] = vs;
|
g[vsc] = vs;
|
||||||
v2vmap[vs] = vsc;
|
v2vmap[vs] = vsc;
|
||||||
}else{
|
}else{
|
||||||
vsc = it->second;
|
vsc = it->second;
|
||||||
}
|
}
|
||||||
if((it = v2vmap.find(vt)) == v2vmap.end()){
|
if((it = v2vmap.find(vt)) == v2vmap.end()){
|
||||||
vtc = add_vertex(g);
|
vtc = add_vertex(g);
|
||||||
g[vtc] = vt;
|
g[vtc] = vt;
|
||||||
v2vmap[vt] = vtc;
|
v2vmap[vt] = vtc;
|
||||||
}else{
|
}else{
|
||||||
vtc = it->second;
|
vtc = it->second;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue