Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting maxWeightMatching and maximalMatching #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

make-github-pseudonymous-again

new files

  • src/algorithms/matching.js (coverage 96.21%)
    • jsnx.maxWeightMatching
    • jsnx.maximalMatching
  • src/algorithms/tests/matching-test.js

modified files

  • package.json
    • corrected a typo in script/cover (nom -> npm)
  • src/_internals/Set.js
    • added an update method to the set class (like Python's set() update),
      union for sets rewritten to use this new method
  • src/algorithms/index.js
    • added exports for new matching algorithms

export function weightedBlossomEdmonds(debug, CHECK_OPTIMUM, CHECK_DELTA) {

// If assigned, DEBUG(str) is called with lots of debug messages.
var DEBUG = debug ? function(s){ console.log('DEBUG:', s); } : null;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep the debug option of the original implementation or can we just drop it?

new files
==

  - src/algorithms/matching.js (coverage 96.21%)
    - jsnx.maxWeightMatching
    - jsnx.maximalMatching
  - src/algorithms/__tests__/matching-test.js

modified files
==

  - package.json
    - corrected a typo in script/cover (nom -> npm)
  - src/_internals/Set.js
    - added an `update` method to the set class (like Python's set update)
      `union` for sets rewritten to use this new method
  - src/algorithms/index.js
    - added exports for new matching algorithms
@fkling
Copy link
Owner

fkling commented Aug 13, 2015

Thanks for that! I will have a closer look and answer your questions on the weekend. I just don't find the time during the week.

@make-github-pseudonymous-again
Copy link
Author

Got time to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants