rm bfs printf
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
2e903ab4da
commit
12f03395ec
|
|
@ -303,12 +303,14 @@ BfsIterator::checkInQueue(Vertex *vertex)
|
||||||
if (vertex->bfsInQueue(bfs_index_))
|
if (vertex->bfsInQueue(bfs_index_))
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
printf("extra %s\n", vertex->to_string(this).c_str());
|
debugPrint(debug_, "bfs", 1, "extra %s",
|
||||||
|
vertex->to_string(this).c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (vertex->bfsInQueue(bfs_index_))
|
if (vertex->bfsInQueue(bfs_index_))
|
||||||
printf("missing %s\n", vertex->to_string(this).c_str());
|
debugPrint(debug_, "brs", 1, "missing %s",
|
||||||
|
vertex->to_string(this).c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -327,7 +329,6 @@ BfsIterator::remove(Vertex *vertex)
|
||||||
&& static_cast<Level>(queue_.size()) > level) {
|
&& static_cast<Level>(queue_.size()) > level) {
|
||||||
debugPrint(debug_, "bfs", 2, "remove %s",
|
debugPrint(debug_, "bfs", 2, "remove %s",
|
||||||
vertex->to_string(this).c_str());
|
vertex->to_string(this).c_str());
|
||||||
printf("bfs remove %s\n", vertex->to_string(this).c_str());
|
|
||||||
for (Vertex *&v : queue_[level]) {
|
for (Vertex *&v : queue_[level]) {
|
||||||
if (v == vertex) {
|
if (v == vertex) {
|
||||||
v = nullptr;
|
v = nullptr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue