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

Add a zeroes iterator #89

Merged
merged 3 commits into from
Jan 16, 2023
Merged

Add a zeroes iterator #89

merged 3 commits into from
Jan 16, 2023

Conversation

james7132
Copy link
Collaborator

@james7132 james7132 commented Jan 16, 2023

Adds an iterator, like Ones, named Zeroes that iterates over the unset bits in a bitset.

Note this is likely a bit less efficient than the Ones iterator due to it needing to ensure that the trailing zeros in the last block are not included in the results.

Added a test to ensure it was working as expected.

Fixes #7. Fixes #9. Supersedes #32. Supersedes #10.

@james7132 james7132 merged commit 71970f7 into petgraph:master Jan 16, 2023
This was referenced Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant