From 11a5ffd5ed1d8632a334a67d3ad9da1382a8f723 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 3 Dec 2014 08:46:30 +0100 Subject: [PATCH] isolated vertices may have degree==0 in the assertion --- BGL/include/CGAL/boost/graph/split_graph_into_polylines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BGL/include/CGAL/boost/graph/split_graph_into_polylines.h b/BGL/include/CGAL/boost/graph/split_graph_into_polylines.h index a7c00c57117..ec928075100 100644 --- a/BGL/include/CGAL/boost/graph/split_graph_into_polylines.h +++ b/BGL/include/CGAL/boost/graph/split_graph_into_polylines.h @@ -95,7 +95,7 @@ void split_graph_into_polylines(Graph& graph, typename boost::graph_traits::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);