The line to enforce symmetry does not support sparse matrices. A potential fix is either to convert to dense and back to sparse or raise an exception if the user selects the Laplacian filter with a sparse adjacency matrix.
|
adj_mx = np.maximum.reduce([adj_mx, adj_mx.T]) |