From 1e90a2b154e358ece06b903b902746a41048c5b1 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Thu, 19 Oct 2023 12:02:14 -0500 Subject: [PATCH] nx-cugraph: handle seed argument in edge_betweenness_centrality --- .../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(),