From f7bf51f214930e5b6c851bad8a0ae278859b95c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20Vit=C3=B3ria=20Ribeiro=20Mendes?= <62755952+MaviMendes@users.noreply.github.com> Date: Mon, 8 May 2023 00:47:01 -0300 Subject: [PATCH] from_numpy_matrix method does not exist https://networkx.org/documentation/stable/reference/generated/networkx.convert_matrix.from_numpy_array.html --- communities/visualization/louvain_animation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communities/visualization/louvain_animation.py b/communities/visualization/louvain_animation.py index f539cf5..e550216 100644 --- a/communities/visualization/louvain_animation.py +++ b/communities/visualization/louvain_animation.py @@ -216,7 +216,7 @@ def __init__(self, A, frames, seed=2, dark=True): np.random.seed(seed) random.seed(seed) - self.G = nx.from_numpy_matrix(A) + self.G = nx.from_numpy_array(A) self.interpolated_frames = interpolate(self.G, frames, seed) self.x = list(range(len(frames)))