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

Allow PriorityQueue priorities to be adjusted #46

Open
rtheunissen opened this issue Aug 30, 2016 · 3 comments
Open

Allow PriorityQueue priorities to be adjusted #46

rtheunissen opened this issue Aug 30, 2016 · 3 comments
Assignees
Milestone

Comments

@rtheunissen
Copy link
Member

No description provided.

@rtheunissen rtheunissen added this to the 2.0.0 milestone Aug 30, 2016
@rtheunissen rtheunissen self-assigned this Aug 30, 2016
@fd6130
Copy link

fd6130 commented Apr 9, 2021

I wonder can a PriorityQueue allow smallest priority number to be at the front of the queue? Because some people might use 1 as highest priority (like me :p) .

@rtheunissen
Copy link
Member Author

You could always make it negative. 😉 I see no reason why both a min and max heap can't be available. I hope to find the time and energy to accomplish that soon.

@enumag
Copy link

enumag commented Apr 9, 2021

It would be nice if we could provide a callable for comparing priorities of two items. In some cases the priority may not be a number but something else that cannot be transformed to a number.

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

No branches or pull requests

3 participants