epfl-lts2 / pygsp

Graph Signal Processing in Python
https://pygsp.rtfd.io
BSD 3-Clause "New" or "Revised" License
483 stars 93 forks source link

Fixed edge type in RandomRegular graphs #112

Open FilippoMB opened 3 weeks ago

FilippoMB commented 3 weeks 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)