Skip to content

Commit

Permalink
Add more details to dual_var comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Jan 29, 2021
1 parent 87654ca commit 37b518d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/max_weight_matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,8 @@ pub fn max_weight_matching(
// If b is a non-trivial blossom,
// dual_var[b] = z(b) where z(b) is b's variable in the dual optimization
// problem.
// dual_var is for vertex v in 0..num_nodes and blossom b in
// num_nodes..2* num nodes
let mut dual_var: Vec<i128> = vec![max_weight; num_nodes];
dual_var.append(&mut vec![0; num_nodes]);
// If allowed_edge[k] is true, edge k has zero slack in the optimization
Expand Down

0 comments on commit 37b518d

Please sign in to comment.