summaryrefslogtreecommitdiff
path: root/content/graph/bellmannFord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'content/graph/bellmannFord.cpp')
-rw-r--r--content/graph/bellmannFord.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/content/graph/bellmannFord.cpp b/content/graph/bellmannFord.cpp
index 09ea1aa..cadcde7 100644
--- a/content/graph/bellmannFord.cpp
+++ b/content/graph/bellmannFord.cpp
@@ -9,7 +9,6 @@ auto bellmannFord(int n, vector<edge>& edges, int start) {
dist[e.to] = dist[e.from] + e.cost;
prev[e.to] = e.from;
}}}
-
for (edge& e : edges) {
if (dist[e.from] != INF &&
dist[e.from] + e.cost < dist[e.to]) {