Skip to content

Account for when the lhs of difference_count has a greater length than the lhs#131

Merged
james7132 merged 2 commits intopetgraph:masterfrom
SkiFire13:fix-difference-count
Apr 26, 2025
Merged

Account for when the lhs of difference_count has a greater length than the lhs#131
james7132 merged 2 commits intopetgraph:masterfrom
SkiFire13:fix-difference-count

Conversation

@SkiFire13
Copy link
Copy Markdown
Contributor

zip truncates the length of the iterator to the shortest of the two, but this is incorrect for difference_count since that might ignore some bits in the tail of the lhs that should be present in the difference. The solution is to include a sum of those. The test for difference was also extended with a case that would trigger this issue.

@james7132 james7132 merged commit 45053bc into petgraph:master Apr 26, 2025
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