isolated vertices may have degree==0 in the assertion

This commit is contained in:
Andreas Fabri 2014-12-03 08:46:30 +01:00
parent bba0e8ce05
commit 11a5ffd5ed
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ void split_graph_into_polylines(Graph& graph,
typename boost::graph_traits<Graph>::degree_size_type
n = degree(v, graph);
CGAL_assertion(n == 1 || n == 2);
CGAL_assertion( n == 0 || n == 1 || n == 2);
}
BOOST_FOREACH(edge_descriptor e, edges(graph)){
vertex_descriptor v = target(e, graph);