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

GPU accelerated graphs #87

Closed
johnlees opened this issue May 21, 2020 · 5 comments · Fixed by #148
Closed

GPU accelerated graphs #87

johnlees opened this issue May 21, 2020 · 5 comments · Fixed by #148
Labels
enhancement New feature or request

Comments

@johnlees
Copy link
Member

Could look at using https://github.com/rapidsai/cugraph

@johnlees johnlees added the enhancement New feature or request label May 21, 2020
@johnlees
Copy link
Member Author

Triangles: cugraph.community.triangle_count.triangles(G)
Denominator: degree = G.degree(); sum([d * (d - 1) for d in degree)
Transitivity = triangles/denominator
(see https://networkx.org/documentation/stable/_modules/networkx/algorithms/cluster.html#transitivity)

Cliques: https://docs.rapids.ai/api/cugraph/stable/api.html?highlight=degree#module-cugraph.community.ktruss_subgraph

@nickjcroucher
Copy link
Collaborator

Should this be added under a --gpu-network flag? Could try adding these functions one-by-one that way I suppose, once the big PR is merged.

@johnlees
Copy link
Member Author

It's supposed to be completely interoperable with networkx (perhaps unfortunate now we've completely removed that), but I think a third GPU flag to enable this would be very sensible

@nickjcroucher
Copy link
Collaborator

So networkx-type code needs to be added back in? At least we can retrieve the code.

@johnlees
Copy link
Member Author

Yeah. I think we'll keep it as graph tools, and just have functions which convert to/from cugraph, and then the time-consuming ones (cliques, network score) should be fairly small drop-ins

@johnlees johnlees mentioned this issue Jan 11, 2021
3 tasks
@johnlees johnlees linked a pull request Mar 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants