Skip to content

Commit

Permalink
handle case when random_state has default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Jan 10, 2025
1 parent 2f00a89 commit c9e2781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cugraph/cugraph/dask/community/leiden.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def leiden(
input_graph._plc_graph[w],
max_iter,
resolution,
random_state + i,
(random_state + i) if random_state is not None else random_state,
theta,
do_expensive_check,
workers=[w],
Expand Down

0 comments on commit c9e2781

Please sign in to comment.