Skip to content

Commit b9de596

Browse files
fix test matching reduction
1 parent 7afc16f commit b9de596

File tree

3 files changed

+286
-286
lines changed

3 files changed

+286
-286
lines changed

src/GraphsMatching.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const MOI = MathOptInterface
1010
import BlossomV # 'using BlossomV' leads to naming conflicts with JuMP
1111
using Hungarian
1212

13-
export MatchingResult, maximum_weight_matching, maximum_weight_maximal_matching, minimum_weight_perfect_matching, HungarianAlgorithm, LPAlgorithm
13+
export MatchingResult, maximum_weight_matching, maximum_weight_matching_reduction, maximum_weight_maximal_matching, minimum_weight_perfect_matching, HungarianAlgorithm, LPAlgorithm
1414

1515
"""
1616
struct MatchingResult{U}

src/maximum_weight_matching.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ maximum_weight_matching_reduction(g::Graph, w::Matrix{Real}) -> Array{Edge}
8383
8484
Given a graph `g` and an edgemap `w` containing weights associated to edges,
8585
returns a matching with the maximum total weight.
86-
`w` is a dictionary that maps edges i => j to weights.
86+
`w` is an adjacent matrix that maps edges i => j to weights.
8787
If no weight parameter is given, all edges will be considered to have weight 1
8888
89-
This algorithm use a reduction based on the minimum_weight_perfect_matching function
90-
to find the maximum weight matching.
89+
This algorithm uses a reduction based on the minimum_weight_perfect_matching function
90+
to find the maximum weight matching (see https://homepages.cwi.nl/~schaefer/ftp/pdf/masters-thesis.pdf section 1.5.1).
9191
9292
Return an array of edges contained in the matching.
9393
"""
@@ -122,4 +122,4 @@ function maximum_weight_matching_reduction(g::Graph,
122122
end
123123

124124
return result
125-
end
125+
end

0 commit comments

Comments
 (0)