Skip to content

Conversation

oscarhiggott
Copy link
Owner

When converting from a pm::UserGraph to a pm::MatchingGraph or pm::SearchGraph, all boundary nodes in the pm::UserGraph are merged into one virtual boundary node. This can sometimes lead to parallel boundary edges during the conversion. Previously, when these parallel boundary edges arose, only the first-added boundary edge was kept, leading to issue #81. This PR fixes the issue by keeping only the minimum-weight parallel boundary edge, since this edge is guaranteed to be chosen over the others by blossom.

Fixes #81.

@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c30fcce) 100.00% compared to head (b90dc08) 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #86   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          337       337           
=========================================
  Hits           337       337           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@oscarhiggott oscarhiggott merged commit 7c31c23 into master Feb 1, 2024
@oscarhiggott oscarhiggott deleted the handle-parallel-boundary-edges branch February 1, 2024 07:06
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.

Unexpected output with parallel boundary edges
2 participants