aboutsummaryrefslogtreecommitdiff
path: root/Graph/tarjan_scc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Graph/tarjan_scc.cpp')
-rw-r--r--Graph/tarjan_scc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Graph/tarjan_scc.cpp b/Graph/tarjan_scc.cpp
index 7f89859..a9bad2e 100644
--- a/Graph/tarjan_scc.cpp
+++ b/Graph/tarjan_scc.cpp
@@ -1,7 +1,7 @@
-struct tarjan {
- int cnt, scc_num, scc[MN], in[MN], low[MN];
+namespace tarjan {
+ int cnt, scc_num, scc[MX], in[MX], low[MX];
stack<int> s;
- bitset<MN> ins;
+ bitset<MX> ins;
void tarjan(vector<int> * G, int u) {
low[u] = in[u] = cnt++, ins[u] = 1; s.push(u);
for (int v : G[u]) {