Skip to content

Commit b8fe702

Browse files
committed
auto
1 parent 2a5a527 commit b8fe702

File tree

1 file changed

+1
-1
lines changed
  • library/graphs/strongly_connected_components

1 file changed

+1
-1
lines changed

library/graphs/strongly_connected_components/scc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! for each edge u -> v: scc_id[u] >= scc_id[v]
1313
//! @time O(n + m)
1414
//! @space O(n)
15-
template<class G> auto sccs(const G& adj) {
15+
auto sccs(const auto& adj) {
1616
int n = sz(adj), num_sccs = 0, timer = 0;
1717
vi scc_id(n, -1), tin(n), st;
1818
auto dfs = [&](auto&& self, int v) -> int {

0 commit comments

Comments
 (0)