assisi / assisipy

Python API for the ASSISI|bf project.
Other
0 stars 3 forks source link

Provide accessor function for list of neighbors #87

Open dmiklic opened 8 years ago

dmiklic commented 8 years ago

Currently, there's no clean way of getting a full list of a CASUs neighbors. @rmm-fcul please comment on how you have been handling this so far.

rmm-fcul commented 8 years ago

I presume that you mean at runtime?

This is obviously not ideal because it depends on "honest" casus, i.e., that they don't look into other parts of the network. For hand-done code it is ok but for evolved code we would need to be more careful.

dmiklic commented 8 years ago

Ok, I see. The hacky fix I'm using right now is to access the neighbour dictionary directly with c._Casu__neighbors (c is a Casu object).