From 9e1407cb864ee1138b45dfa3dcb46dadbcdfc0ea Mon Sep 17 00:00:00 2001 From: mbeisel Date: Thu, 25 Apr 2024 14:40:35 +0200 Subject: [PATCH] update to new networkx version --- app/service_functions/gw_algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service_functions/gw_algorithm.py b/app/service_functions/gw_algorithm.py index 6e6e7f9..60afbc2 100644 --- a/app/service_functions/gw_algorithm.py +++ b/app/service_functions/gw_algorithm.py @@ -24,7 +24,7 @@ def best_gw_cuts(graph, n_GW_cuts, rounded=False): np_graph_array = np.array(graph) - nx_graph = nx.from_numpy_matrix(np_graph_array) + nx_graph = nx.from_numpy_array(np_graph_array) gw_cuts = [] for i in range(n_GW_cuts):