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

Parallel algorithms #35

Open
pnevyk opened this issue Jan 8, 2023 · 1 comment
Open

Parallel algorithms #35

pnevyk opened this issue Jan 8, 2023 · 1 comment

Comments

@pnevyk
Copy link
Owner

pnevyk commented Jan 8, 2023

It would be nice to provide implementations of parallel algorithms, especially if it would be possible to have them with the same API as their sequential counterparts. The goal is to try to implement a parallel algorithm in order to discover obstacles, rough edges, necessary API extensions/changes and helpful internals for implementing parallel algorithms in general.

A good candidate may be connected components. That will require implementing fundamentals such as parallel API on graph storages and parallel BFS.

Some resources I found online:

@pnevyk
Copy link
Owner Author

pnevyk commented Apr 7, 2023

Parallel algorithms may need more constraints on the graph (e.g., parallel iterators?) and these should not be required by default. Thus there should be a parallel() method on the algorithms builders which changes the constraints on the generics such that parallel algorithms are allowed. In other words, parallel algorithms should be opt-in instead of the default. Note that calling the parallel() method does not guarantee that a parallel algorithm will be used, that is up to the algorithm auto-selection.

@pnevyk pnevyk pinned this issue Apr 7, 2023
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

No branches or pull requests

1 participant