summaryrefslogtreecommitdiff
path: root/content/graph
diff options
context:
space:
mode:
Diffstat (limited to 'content/graph')
-rw-r--r--content/graph/scc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/graph/scc.cpp b/content/graph/scc.cpp
index 63b2757..9f8f850 100644
--- a/content/graph/scc.cpp
+++ b/content/graph/scc.cpp
@@ -14,7 +14,7 @@ void visit(int v) {
if (old == low[v]) {
sccs.emplace_back(begin(s) + old, end(s));
for (int u: sccs.back()) idx[u] = ssize(sccs)-1;
- s.erase(begin(s) + old, end(s));
+ s.resize(old);
}}
void scc() {