diff options
Diffstat (limited to 'graph/havelHakimi.cpp')
| -rw-r--r-- | graph/havelHakimi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graph/havelHakimi.cpp b/graph/havelHakimi.cpp index 9fb9846..135c4b0 100644 --- a/graph/havelHakimi.cpp +++ b/graph/havelHakimi.cpp @@ -4,7 +4,7 @@ vector<vector<int>> havelHakimi(const vector<int>& deg) { vector<vector<int>> adj; while (!pq.empty()) { auto v = pq.top(); pq.pop(); - if (sz(pq) < v.first) return {}; //ERROR + if (sz(pq) < v.first) return {}; //impossible vector<pair<int, int>> todo; for (int i = 0; i < v.first; i++) { auto u = pq.top(); pq.pop(); |
