diff --git a/DataStructures/StaticGraph.h b/DataStructures/StaticGraph.h index d5a20766d..d6dc4c60c 100644 --- a/DataStructures/StaticGraph.h +++ b/DataStructures/StaticGraph.h @@ -126,7 +126,7 @@ template class StaticGraph #ifndef NDEBUG Percent p(GetNumberOfNodes()); - for (const auto u : boost::irange(0u, GetNumberOfEdges())) + for (const auto u : boost::irange(0u, GetNumberOfNodes())) { for (auto eid : GetAdjacentEdgeRange(u)) {