pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
21.23k stars 3.64k forks source link

File name too long error for SBMs #6771

Open GageDeZoort opened 1 year ago

GageDeZoort commented 1 year ago

🐛 Describe the bug

If I try to create a StochasticBlockModelDataset with more than around 6-8 blocks, I get a File name too long error because the block sizes are individually copied into the filename string. I'm interested in a specific scenario where there are many blocks (think >16) that all have the same size. In this case, the processed_file_names function could just count how many blocks of the same size appear in the graph and list "degeneracy counts" next to each block size in the hash.

Environment

rusty1s commented 1 year ago

Thanks for reporting, I agree this isn't optimal. Do you have interest in contributing a fix?