Skip to content

Commit 686a645

Browse files
authored
golf
1 parent 4b9453c commit 686a645

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/graphs/bridges_cuts/bcc_callback.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
//! @space O(n + m)
3737
void bcc_callback(const auto& adj, auto f) {
3838
int n = sz(adj), q = 0, s = 0;
39-
vi tin(n), st(n);
39+
vi t(n), st(n);
4040
auto dfs = [&](auto&& self, int v) -> int {
41-
int l = tin[v] = ++q;
41+
int l = t[v] = ++q;
4242
for (int u : adj[v]) {
4343
int siz = s, lu = 0;
44-
l = min(l, tin[u] ?: (lu = self(self, st[s++] = u)));
45-
if (lu >= tin[v]) {
44+
l = min(l, t[u] ?: (lu = self(self, st[s++] = u)));
45+
if (lu >= t[v]) {
4646
st[s++] = v;
4747
f(vi(siz + all(st) - n + s));
4848
s = siz;
4949
}
5050
}
5151
return l;
5252
};
53-
rep(i, 0, n) if (!tin[i]) dfs(dfs, i);
53+
rep(i, 0, n) if (!t[i]) dfs(dfs, i);
5454
}

0 commit comments

Comments
 (0)