From 86326fd03eceeb3f95dd244f3fc96bdd399bcc99 Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Fri, 13 Sep 2013 19:22:21 +0200 Subject: [PATCH] count and show number of neighbors Signed-off-by: Panagiotis Cheilaris --- .../include/CGAL/Segment_Delaunay_graph_Linf_2.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2.h b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2.h index 4515912706c..faf175c659b 100644 --- a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2.h +++ b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2.h @@ -1254,6 +1254,7 @@ public: } Vertex_circulator vc = incident_vertices(vh); Vertex_circulator vcstart = vc; + unsigned int count_neighs = 0; if (vc != 0) { do { vh = vc; @@ -1262,8 +1263,10 @@ public: } else { os << " " << vc->site(); } + ++count_neighs; } while (++vc != vcstart); } + os << " count_neighs=" << count_neighs; os << std::endl; }