Open SteinarLaenen opened 2 years ago
When trying to run pycheeg.cheeger.cheeger_cut(G) with two vertices I get a type error from scipy:
TypeError: Cannot use scipy.linalg.eigh for sparse A with k >= N. Use scipy.linalg.eigh(A.toarray()) or reduce k.
Some code to reproduce the error:
d = 1 n = 2 G = nx.random_regular_graph(d, n) cut_value = pycheeg.cheeger.cheeger_cut(G)
Thanks for the report - I know why this is :) I'll fix it when I move this code into SGTL. For now you'll have to calculate the two-vertex case yourself :P
When trying to run pycheeg.cheeger.cheeger_cut(G) with two vertices I get a type error from scipy:
Some code to reproduce the error: