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

Simplify API #5

Open
make-github-pseudonymous-again opened this issue Mar 10, 2021 · 0 comments
Open

Simplify API #5

make-github-pseudonymous-again opened this issue Mar 10, 2021 · 0 comments
Labels

Comments

@make-github-pseudonymous-again
Copy link
Member

Something like

sorted(fifo, edges);
sorted(lifo, edges);
sorted(Array, edges);
sorted(() => new Heap(increasing), edges);

Kahn's algo needs {push, pop/shift, isEmpty/length/size}. The convenience wrapper needs to build a queue from the set of free vertices. Currently done with push, but could be done with from.

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

No branches or pull requests

1 participant