Closed cathywu closed 8 years ago
Testing done:
import scipy.sparse
import numpy as np
import pymetis
F = scipy.sparse.rand(100, 100, density=0.005)
M = F.transpose() * F
adjacency_list = [M.getrow(i).indices for i in range(M.shape[0])]
node_nd = pymetis.nested_dissection(adjacency=adjacency_list)
perm, iperm = np.array(node_nd[0]), np.array(node_nd[1])
assert np.all(perm[iperm] == np.array(range(perm.size)))
The above gives no errors.
Thanks!
I've also added the test you provided. Thanks for that as well.
small fix, nested_dissection doesn't actually use the computed adjncy…; resolves #7