divelab / DIG

A library for graph deep learning research
https://diveintographs.readthedocs.io/
GNU General Public License v3.0
1.85k stars 281 forks source link

Update aug_dataset.py #241

Open simon-forb opened 6 months ago

simon-forb commented 6 months ago

sample does not work on the view object returned by dict.keys() since sample requires a sequence or set object.

There is probably a better way to do this in the first place, i.e., another function instead of sample.