sacs-epfl / decentralizepy

A decentralized learning research framework
MIT License
24 stars 18 forks source link

update get_neighbors for python >= 3.9 #14

Open Alexyyym opened 5 months ago

Alexyyym commented 5 months ago

Fix for issue #13

Quick fix that could lead to complexity issues because the conversion from set to list is made every time the method is called so Nb of communication/steps * Nb of nodes calls

Might consider changing the data type of neighbors from sets to lists or having both data structures stored if the set type is required for other uses in the code

rishi-s8 commented 5 months ago

Is there a better way? Would be too many typecasts.