Repository navigation
Add Python simple_cycles with Dask multi-GPU support - #5695
Draft
alexbarghi-nv wants to merge 1 commit into
Draft
alexbarghi-nv wants to merge 1 commit into
alexbarghi-nv wants to merge 1 commit into
Conversation
alexbarghi-nv
marked this pull request as draft
October 6, 2026 06:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the public cuGraph Python integration for the simple-cycles C API and pylibcugraph binding merged in #5669.
cugraph.simple_cycles(G, length_bound, seed_vertices=None)andcugraph.dask.simple_cycles(G, length_bound, seed_vertices=None)enumerate bounded directed cycles. Both return a DataFrame with one row per vertex occurrence andcycle_id,position, and external vertex IDs. These columns preserve cycle membership and directed order when Python unrenumbering shuffles rows; multi-column vertex IDs use the existing unrenumbering convention.The Dask implementation runs the collective algorithm on every graph worker, keeps distributed seed partitions off the client, supplies non-NULL empty arrays on workers without seeds, and assigns globally unique cycle IDs without gathering cycle counts. It persists results before releasing intermediate futures and propagates worker errors. An empty global seed set returns an empty result before entering libcugraph, whose expensive checks require a nonempty global seed set.
Validation:
git diff --checkpassed.