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)))