Skip to content

Commit

Permalink
refactor centroid_decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
idat50me committed Jul 16, 2024
1 parent 323b2fb commit a8aaecd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions graph/centroid_decomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ struct centroid_decomposition {

private:
int dfs(int x, int tsize, int prev = -1) {
if(found_cent) return -1;

int size = 1, cent_flag = 1;
for(int i = 0; i < E[x].size(); i++) {
int nx = E[x][i];
Expand Down

0 comments on commit a8aaecd

Please sign in to comment.