diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2026-08-14 23:36:00 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2026-08-14 23:36:00 +0200 |
| commit | ee4a6e4a85be1811fedad0c188aad00ec322e5d6 (patch) | |
| tree | af902a610e4a807e8342ec4221dc588d8b04e484 /content/graph/stoerWagner.cpp | |
| parent | d697207cde39a5a26361d693d1ccb3d5e7616d81 (diff) | |
another comment
Diffstat (limited to 'content/graph/stoerWagner.cpp')
| -rw-r--r-- | content/graph/stoerWagner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/graph/stoerWagner.cpp b/content/graph/stoerWagner.cpp index 97e667a..10f7327 100644 --- a/content/graph/stoerWagner.cpp +++ b/content/graph/stoerWagner.cpp @@ -44,10 +44,10 @@ ll stoer_wagner() { state.push_back({cur, c}); } int t = state.back().second; - state.pop_back(); + state.pop_back(); //cut between comp(t) and everything else if (state.empty()) return 0; //graph is not connected?! - merge(state.back().second, t); res = min(res, state.back().first); + merge(state.back().second, t); } return res; } |
