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

[QST]: How to random permute vertices in multi-GPU cugraph? #4886

Open
2 tasks done
blackboxo opened this issue Jan 23, 2025 · 1 comment
Open
2 tasks done

[QST]: How to random permute vertices in multi-GPU cugraph? #4886

blackboxo opened this issue Jan 23, 2025 · 1 comment
Labels
question Further information is requested

Comments

@blackboxo
Copy link

What is your question?

I want to generate several different results of Louvain, and need to random permute vertices in graph.

In igraph, we can make it like this:
p = np.random.permutation(self.vcount()).tolist()
g = self.permute_vertices(p)

How to realize the same function in multi-GPU cuGraph with dask cudf? Thanks

Code of Conduct

  • I agree to follow cuGraph's Code of Conduct
  • I have searched the open issues and have found no duplicates for this question
@blackboxo blackboxo added the question Further information is requested label Jan 23, 2025
@ChuckHastings
Copy link
Collaborator

Is the goal to run Louvain one the same graph with a different ordering of the vertices?

We have a feature in Louvain (to support the ECG algorithm) which will do this for you. Unfortunately, this is not currently exposed to the python layer. Short of that, there's no real good solution to this problem. Vertices are ordered in cugraph based on a hashing/sorting technique that is deterministic. So even if you were to scramble the input and create a new graph you'd end up with essentially the same order.

We could look at exposing this to the python layer.

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

No branches or pull requests

2 participants