diff --git a/orangecontrib/network/network/base.py b/orangecontrib/network/network/base.py index c65407d..c63b523 100644 --- a/orangecontrib/network/network/base.py +++ b/orangecontrib/network/network/base.py @@ -51,8 +51,7 @@ def _compose_neighbours(node: int, matrix: sp.csr_matrix, weights: bool): if not weights: return matrix.indices[fr:to] else: - return np.vstack(np.atleast_2d(matrix.indices[fr:to]), - np.atleast_2d(matrix.data[fr:to])) + return matrix.indices[fr:to], matrix.data[fr:to] @staticmethod def _compute_degrees(edges, weighted):