count and show number of neighbors

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
This commit is contained in:
Panagiotis Cheilaris 2013-09-13 19:22:21 +02:00
parent 761f6f720b
commit 86326fd03e
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}