Skip to content

Commit

Permalink
fix initailize of scc
Browse files Browse the repository at this point in the history
  • Loading branch information
jakao0907 committed Jun 30, 2024
1 parent ebb6ecc commit 64efa08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/kosaraju.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ struct Scc{
vector<int> E[MXN], rE[MXN], vec;
void init(int _n){
n = _n;
for (int i=0; i<MXN; i++)
for (int i=0; i<= n; i++)
E[i].clear(), rE[i].clear();
}
void addEdge(int u, int v){
Expand Down

0 comments on commit 64efa08

Please sign in to comment.