gsp-eeg / PyGSP2

Graph Signal Processing 2 in Python
https://pygsp2.readthedocs.io/en/latest
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Fixed edge type in RandomRegular graphs #81

Closed FilippoMB closed 1 month ago

FilippoMB commented 2 months ago

In randomregular.py changed

# a list of open half-edges
U = np.kron(np.ones(k), np.arange(N))

into

# a list of open half-edges
U = np.kron(np.ones(k), np.arange(N)).astype(int)