From 975502209991c1abe7b1878585fec9e1978f5b07 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Mon, 30 Oct 2023 14:01:25 -0500 Subject: [PATCH] nx-cugraph: handle seed argument in edge_betweenness_centrality (#3943) CC @rlratzel who brought this to my attention and can test this fix Authors: - Erik Welch (https://github.com/eriknw) - Brad Rees (https://github.com/BradReesWork) Approvers: - Rick Ratzel (https://github.com/rlratzel) URL: https://github.com/rapidsai/cugraph/pull/3943 --- .../nx-cugraph/nx_cugraph/algorithms/centrality/betweenness.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/nx-cugraph/nx_cugraph/algorithms/centrality/betweenness.py b/python/nx-cugraph/nx_cugraph/algorithms/centrality/betweenness.py index 104ac87414c..210e1f0a2b2 100644 --- a/python/nx-cugraph/nx_cugraph/algorithms/centrality/betweenness.py +++ b/python/nx-cugraph/nx_cugraph/algorithms/centrality/betweenness.py @@ -53,6 +53,7 @@ def edge_betweenness_centrality(G, k=None, normalized=True, weight=None, seed=No raise NotImplementedError( "Weighted implementation of betweenness centrality not currently supported" ) + seed = _seed_to_int(seed) G = _to_graph(G, weight) src_ids, dst_ids, values, _edge_ids = plc.edge_betweenness_centrality( resource_handle=plc.ResourceHandle(),