Skip to content

Commit e6903c9

Browse files
authored
fix spacing
1 parent 3b43753 commit e6903c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/graph/finding-negative-cycle-in-graph.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ void solve()
4343
for (int i = 0; i < n; ++i) {
4444
x = -1;
4545
for (Edge e : edges) {
46-
if (d[e.a] + e.cost < d[e.b]) {
47-
d[e.b] = max(-INF, d[e.a] + e.cost);
48-
p[e.b] = e.a;
49-
x = e.b;
50-
}
46+
if (d[e.a] + e.cost < d[e.b]) {
47+
d[e.b] = max(-INF, d[e.a] + e.cost);
48+
p[e.b] = e.a;
49+
x = e.b;
50+
}
5151
}
5252
}
5353

0 commit comments

Comments
 (0)