-
Notifications
You must be signed in to change notification settings - Fork 3
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
Generalise toposort to LinkView #96
Conversation
Sorry, messed up my git manip, will be ready soon! |
It's ready now! |
Side note: this could also be implemented on any |
8ec7c84
to
8241d74
Compare
8241d74
to
38d02f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Petgraph already has a toposort algo. There's a benchmark here that compares both implementations (and petgraph's was faster last time I checked!)
That implementation allocates a vector with the result instead of returning the iterator. We currently use petgraph's in Hugr, but imho both are useful.
No description provided.