Skip to content

Conversation

@tikhu
Copy link
Contributor

@tikhu tikhu commented Oct 18, 2023

Hi,
I needed the ability to iterate through the set in reverse.
I looked into it and implemented the DoubleEndedIterator for Ones.
This makes the iterator struct slightly larger. I added one Block and one index (usize) to the struct.
The pull request also includes testing and benchmarks modifications to utilize this feature.
Benchmark performance remains the same on my machine.
If there is interest in this, I'm happy to implement the same for Zeros.

Copy link
Collaborator

@james7132 james7132 left a comment

Choose a reason for hiding this comment

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

Sorry for the slow response, looks good to me.

@james7132 james7132 merged commit 84c1324 into petgraph:master Feb 26, 2024
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