-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds a new python function max_weight_function() for computing the maximum-weighted matching of a PyGraph object. The implementation of this function is based on “Efficient Algorithms for Finding Maximum Matching in Graphs”, Zvi Galil, ACM Computing Surveys, 1986. [1] It is basically a porting of the networkx implementation of the algorithm [2] with some additional inspiration from the prototype for the networkx version (it's basically the same code but some aspects were a bit clearer to figure out from the prototype rather than networkx's copy of it). [3][4] Fixes #216 [1] https://dl.acm.org/doi/10.1145/6462.6502 [2] https://github.com/networkx/networkx/blob/3351206a3ce5b3a39bb2fc451e93ef545b96c95b/networkx/algorithms/matching.py [3] http://jorisvr.nl/article/maximum-matching [4] http://jorisvr.nl/files/graphmatching/20130407/mwmatching.py
- Loading branch information
Showing
6 changed files
with
1,780 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/add-max-weight-matching-089ba67668b3b071.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
features: | ||
- | | ||
Add a new function, :func:`~retworkx.max_weight_matching` for computing the | ||
maximum-weighted matching for a :class:`~retworkx.PyGraph` object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.